From b46b7d7591b4f76f234e8514c23e46f67c590a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 1 Aug 2018 09:45:34 +0200 Subject: [PATCH] systemtags: Submit input on enter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/systemtags/js/admin.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/systemtags/js/admin.js b/apps/systemtags/js/admin.js index 5e97cf8ad6..12ad23495e 100644 --- a/apps/systemtags/js/admin.js +++ b/apps/systemtags/js/admin.js @@ -40,6 +40,12 @@ } }); + var self = this; + $('#systemtag_name').on('keyup', function(e) { + if (e.which === 13) { + _.bind(self._onClickSubmit, self)(); + } + }); $('#systemtag_submit').on('click', _.bind(this._onClickSubmit, this)); $('#systemtag_delete').on('click', _.bind(this._onClickDelete, this)); $('#systemtag_reset').on('click', _.bind(this._onClickReset, this));