Browse Source

Minor dropdown formatting

pull/2755/merge
Jack Lukic 9 years ago
parent
commit
16ae41d83e
1 changed files with 3 additions and 5 deletions
  1. 8
      src/definitions/modules/dropdown.js

8
src/definitions/modules/dropdown.js

@ -406,10 +406,8 @@ $.fn.dropdown = function(parameters) {
; ;
if( module.can.show() && !module.is.active() ) { if( module.can.show() && !module.is.active() ) {
module.debug('Showing dropdown'); 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()) { if(module.has.message() && !module.has.maxSelections()) {
module.remove.message(); module.remove.message();
@ -2664,7 +2662,7 @@ $.fn.dropdown = function(parameters) {
return ($item.filter(selector.unselectable).length === $item.length); return ($item.filter(selector.unselectable).length === $item.length);
}, },
query: function() { query: function() {
return (module.get.query() != '');
return (module.get.query() !== '');
}, },
value: function(value) { value: function(value) {
var var

Loading…
Cancel
Save