diff --git a/public/src/overrides.js b/public/src/overrides.js index 913a5abf3f..afe5003b3c 100644 --- a/public/src/overrides.js +++ b/public/src/overrides.js @@ -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(); + } }); - }