Fix an issue with the tag prompt removing all keyup listeners

pull/1/head
yflory 2017-12-15 15:33:53 +01:00
parent 92a8e107d7
commit 50ddad5e41
1 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ define([
};
var stopListening = UI.stopListening = function (handler) {
if (!handler) { return; } // we don't want to stop all the 'keyup' listeners
$(window).off('keyup', handler);
};
@ -210,7 +211,7 @@ define([
var $cancel = findCancelButton(tagger).click(function (e) {
close(null, e);
});
listenForKeys(function () {
listener = listenForKeys(function () {
$ok.click();
}, function () {
$cancel.click();