-
-
Save csavoronin/f088bc10da6a5403e316cb455fdd8eb6 to your computer and use it in GitHub Desktop.
[!] UI / UX: When switching to other tabs, the context menu remained and worked incorrectly on the search results page. Fixed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/tygh/backend/bulkedit.js b/js/tygh/backend/bulkedit.js | |
index f396392ea32..224504162e9 100644 | |
--- a/js/tygh/backend/bulkedit.js | |
+++ b/js/tygh/backend/bulkedit.js | |
@@ -83,22 +83,19 @@ | |
} | |
// FIXME: Remove this code when multiple context menus on the page are fixed | |
- if ($('.bulkedit-dropdown--legacy').length) { | |
- if ($('.bulkedit-dropdown--legacy li:not(.bulkedit-action--legacy)').length) { | |
- $('.bulkedit-dropdown--legacy').removeClass('hide'); | |
- } | |
- | |
- if ($('.bulkedit-disabled').length) { | |
- $('.longtap-selection .bulkedit-toggler').attr('disabled', true); | |
- $('.longtap-selection .cm-item.hide').removeClass('hide'); | |
- $('.longtap-selection tr').removeAttr('data-ca-longtap-action'); | |
- $('.longtap-selection tr').removeAttr('data-ca-longtap-target'); | |
- $('.bulkedit-buttons-disabled .bulkedit-dropdown--legacy.hide').removeClass('hide'); | |
- $('.bulkedit-buttons-disabled .bulkedit-action--legacy').removeClass('hide'); | |
- return; | |
- } | |
+ if ($('.bulkedit-dropdown--legacy').length && $('.bulkedit-dropdown--legacy li:not(.bulkedit-action--legacy)').length) { | |
+ $('.bulkedit-dropdown--legacy').removeClass('hide'); | |
} | |
+ if ($('.bulkedit-disabled').length) { | |
+ $('.longtap-selection .bulkedit-toggler').attr('disabled', true); | |
+ $('.longtap-selection .cm-item.hide').removeClass('hide'); | |
+ $('.longtap-selection tr').removeAttr('data-ca-longtap-action'); | |
+ $('.longtap-selection tr').removeAttr('data-ca-longtap-target'); | |
+ $('.bulkedit-buttons-disabled .bulkedit-dropdown--legacy.hide').removeClass('hide'); | |
+ $('.bulkedit-buttons-disabled .bulkedit-action--legacy').removeClass('hide'); | |
+ return; | |
+ } | |
_doc.on('click', '.bulkedit-toggler', toggleBulkEditPanel); | |
_doc.on('click', '.bulkedit-disabler', toggleBulkEditPanel); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment