Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-08-01 10:45:34 +0300
committerJulius Härtl <jus@bitgrid.net>2018-08-01 10:45:34 +0300
commitb46b7d7591b4f76f234e8514c23e46f67c590a0b (patch)
treee3bce8b994f125f07bfaea341b3a6e660e9a1ef9 /apps/systemtags
parent03971d3695f1abe7ec7012196447b07151768731 (diff)
systemtags: Submit input on enter
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/systemtags')
-rw-r--r--apps/systemtags/js/admin.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/systemtags/js/admin.js b/apps/systemtags/js/admin.js
index 5e97cf8ad6d..12ad23495e8 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));