systemtags: Submit input on enter
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
03971d3695
commit
b46b7d7591
|
@ -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_submit').on('click', _.bind(this._onClickSubmit, this));
|
||||||
$('#systemtag_delete').on('click', _.bind(this._onClickDelete, this));
|
$('#systemtag_delete').on('click', _.bind(this._onClickDelete, this));
|
||||||
$('#systemtag_reset').on('click', _.bind(this._onClickReset, this));
|
$('#systemtag_reset').on('click', _.bind(this._onClickReset, this));
|
||||||
|
|
Loading…
Reference in New Issue