mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed post upload keeping tag suggestions
This commit is contained in:
@ -264,7 +264,7 @@ App.Controls.TagInput = function($underlyingInput) {
|
||||
}
|
||||
|
||||
function showOrHideTagSiblings(tagName) {
|
||||
if ($siblings.data('lastTag') === tagName) {
|
||||
if ($siblings.data('lastTag') === tagName && $siblings.is(':visible')) {
|
||||
$siblings.slideUp('fast');
|
||||
$siblings.data('lastTag', null);
|
||||
return;
|
||||
@ -335,12 +335,18 @@ App.Controls.TagInput = function($underlyingInput) {
|
||||
$input.focus();
|
||||
}
|
||||
|
||||
function hideSuggestions() {
|
||||
$siblings.hide();
|
||||
$suggestions.hide();
|
||||
}
|
||||
|
||||
_.extend(options, {
|
||||
setTags: setTags,
|
||||
getTags: getTags,
|
||||
removeTag: removeTag,
|
||||
addTag: addTag,
|
||||
focus: focus,
|
||||
hideSuggestions: hideSuggestions,
|
||||
});
|
||||
return options;
|
||||
};
|
||||
|
@ -346,6 +346,7 @@ App.Presenters.PostUploadPresenter = function(
|
||||
if (selectedPosts.length === 0) {
|
||||
hidePostEditForm();
|
||||
} else {
|
||||
tagInput.hideSuggestions();
|
||||
showPostEditForm(selectedPosts);
|
||||
}
|
||||
$el.find('.post-table-op').prop('disabled', selectedPosts.length === 0);
|
||||
|
Reference in New Issue
Block a user