fixes #1774
This commit is contained in:
@@ -68,6 +68,12 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$fields.on("autocompleteopen", function() {
|
||||||
|
Danbooru.autocompleting = true;
|
||||||
|
});
|
||||||
|
$fields.on("autocompleteclose", function() {
|
||||||
|
setTimeout(function() {Danbooru.autocompleting = false;}, 100);
|
||||||
|
});
|
||||||
|
|
||||||
var render_tag = function(list, tag) {
|
var render_tag = function(list, tag) {
|
||||||
var $link = $("<a/>").addClass("tag-type-" + tag.category).text(tag.label);
|
var $link = $("<a/>").addClass("tag-type-" + tag.category).text(tag.label);
|
||||||
|
|||||||
@@ -17,8 +17,10 @@
|
|||||||
|
|
||||||
Danbooru.Upload.initialize_enter_on_tags = function() {
|
Danbooru.Upload.initialize_enter_on_tags = function() {
|
||||||
$("#upload_tag_string,#post_tag_string").bind("keydown", "return", function(e) {
|
$("#upload_tag_string,#post_tag_string").bind("keydown", "return", function(e) {
|
||||||
$("#form").trigger("submit");
|
if (!Danbooru.autocompleting) {
|
||||||
$("#quick-edit-form").trigger("submit");
|
$("#form").trigger("submit");
|
||||||
|
$("#quick-edit-form").trigger("submit");
|
||||||
|
}
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module Danbooru
|
|||||||
class Configuration
|
class Configuration
|
||||||
# The version of this Danbooru.
|
# The version of this Danbooru.
|
||||||
def version
|
def version
|
||||||
"2.17.0"
|
"2.18.0"
|
||||||
end
|
end
|
||||||
|
|
||||||
# The name of this Danbooru.
|
# The name of this Danbooru.
|
||||||
|
|||||||
Reference in New Issue
Block a user