Answer the question
In order to leave comments, you need to log in
How to fix a bug in the TagIt plugin?
This plugin is also used here on the Toaster, but there is no problem with the Russian letter "b".
Answer the question
In order to leave comments, you need to log in
try deleting this line) it helped mec.which===b.ui.keyCode.COMMA&&!1===c.shiftKey||
try it
this.tagInput.keydown(function (c) {
if (c.which == b.ui.keyCode.BACKSPACE && "" === a.tagInput.val()) {
var d = a._lastTag();
!a.options.removeConfirmation || d.hasClass("remove") ? a.removeTag(d) : a.options.removeConfirmation && d.addClass("remove ui-state-highlight")
} else a.options.removeConfirmation && a._lastTag().removeClass("remove ui-state-highlight");
if (c.which === b.ui.keyCode.COMMA && !1 === c.shiftKey || c.which === b.ui.keyCode.ENTER || c.which ==
b.ui.keyCode.TAB && "" !== a.tagInput.val() || c.which == b.ui.keyCode.SPACE && !0 !== a.options.allowSpaces && ('"' != b.trim(a.tagInput.val()).replace(/^s*/, "").charAt(0) || '"' == b.trim(a.tagInput.val()).charAt(0) && '"' == b.trim(a.tagInput.val()).charAt(b.trim(a.tagInput.val()).length - 1) && 0 !== b.trim(a.tagInput.val()).length - 1))c.which === b.ui.keyCode.ENTER && "" === a.tagInput.val() || c.preventDefault(), a.options.autocomplete.autoFocus && a.tagInput.data("autocomplete-open") || (a.tagInput.autocomplete("close"), a.createTag(a._cleanedInput()))
}).blur(function (b) {
a.tagInput.data("autocomplete-open") ||
a.createTag(a._cleanedInput())
});
this.tagInput.keypress(function (n) {
if (n.which === 44 || n.which === 13 || n.which === 47 || n.which == 32 && a.options.allowSpaces !== !0 && (b.trim(a.tagInput.val()).replace(/^s*/, "").charAt(0) != '"' || b.trim(a.tagInput.val()).charAt(0) == '"' && b.trim(a.tagInput.val()).charAt(b.trim(a.tagInput.val()).length - 1) == '"' && b.trim(a.tagInput.val()).length - 1 !== 0))(n.which !== 13 || a.tagInput.val() !== "") && n.preventDefault(), a.createTag(a._cleanedInput())
}).keydown(function (n) {
if (n.which == b.ui.keyCode.BACKSPACE && a.tagInput.val() === "") {
var r = a._lastTag();
!a.options.removeConfirmation || r.hasClass("remove") ? a.removeTag(r) : a.options.removeConfirmation && r.addClass("remove ui-state-highlight")
} else a.options.removeConfirmation && a._lastTag().removeClass("remove ui-state-highlight");
n.which == b.ui.keyCode.TAB && a.tagInput.val() !== "" && (n.which !== b.ui.keyCode.ENTER || a.tagInput.val() !== "", a.tagInput.data("autocomplete-open") || a.createTag(a._cleanedInput()))
}).blur(function (e) {
a.tagInput.data("autocomplete-open") || a.createTag(a._cleanedInput())
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question