From 16ae41d83e0024d79e5d9ff4c64f80fe6c08d03e Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Tue, 11 Aug 2015 17:23:18 -0400 Subject: [PATCH] Minor dropdown formatting --- src/definitions/modules/dropdown.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 8d800d4b2..b4680dfbc 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -406,10 +406,8 @@ $.fn.dropdown = function(parameters) { ; if( module.can.show() && !module.is.active() ) { module.debug('Showing dropdown'); - if(module.is.multiple()) { - if(!module.has.search() && module.is.allFiltered()) { - return true; - } + if(module.is.multiple() && !module.has.search() && module.is.allFiltered()) { + return true; } if(module.has.message() && !module.has.maxSelections()) { module.remove.message(); @@ -2664,7 +2662,7 @@ $.fn.dropdown = function(parameters) { return ($item.filter(selector.unselectable).length === $item.length); }, query: function() { - return (module.get.query() != ''); + return (module.get.query() !== ''); }, value: function(value) { var