mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
somebody was trying to save trees by reducing whitespace
burn the trees
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
/*globals translator*/
|
||||
|
||||
|
||||
if ('undefined' !== typeof window) {
|
||||
|
||||
@@ -92,7 +94,8 @@ if ('undefined' !== typeof window) {
|
||||
.off('click.data-api.dropdown', _clearMenus)
|
||||
.on('click.data-api.dropdown', function (e) {
|
||||
// call the handler only when not right-click
|
||||
e.button === 2 || _clearMenus();
|
||||
if (e.button !== 2) {
|
||||
_clearMenus();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user