|
16 | 16 |
|
17 | 17 | (function(root, factory) { |
18 | 18 | if (typeof define === 'function' && define.amd) { |
19 | | - define(factory); |
| 19 | + define('sifter', factory); |
20 | 20 | } else if (typeof exports === 'object') { |
21 | 21 | module.exports = factory(); |
22 | 22 | } else { |
|
464 | 464 |
|
465 | 465 | (function(root, factory) { |
466 | 466 | if (typeof define === 'function' && define.amd) { |
467 | | - define(factory); |
| 467 | + define('microplugin', factory); |
468 | 468 | } else if (typeof exports === 'object') { |
469 | 469 | module.exports = factory(); |
470 | 470 | } else { |
|
603 | 603 |
|
604 | 604 | (function(root, factory) { |
605 | 605 | if (typeof define === 'function' && define.amd) { |
606 | | - define(['jquery','sifter','microplugin'], factory); |
| 606 | + define('selectize', ['jquery','sifter','microplugin'], factory); |
607 | 607 | } else { |
608 | 608 | root.Selectize = factory(root.jQuery, root.Sifter, root.MicroPlugin); |
609 | 609 | } |
|
1799 | 1799 | * Selects all items (CTRL + A). |
1800 | 1800 | */ |
1801 | 1801 | selectAll: function() { |
1802 | | - this.$activeItems = Array.prototype.slice.apply(this.$control.children(':not(input)').addClass('active')); |
1803 | | - if (this.$activeItems.length) { |
1804 | | - this.hideInput(); |
1805 | | - this.close(); |
| 1802 | + var self = this; |
| 1803 | + if (self.settings.mode === 'single') return; |
| 1804 | + |
| 1805 | + self.$activeItems = Array.prototype.slice.apply(self.$control.children(':not(input)').addClass('active')); |
| 1806 | + if (self.$activeItems.length) { |
| 1807 | + self.hideInput(); |
| 1808 | + self.close(); |
1806 | 1809 | } |
1807 | | - this.focus(); |
| 1810 | + self.focus(); |
1808 | 1811 | }, |
1809 | 1812 |
|
1810 | 1813 | /** |
|
2633 | 2636 | } |
2634 | 2637 |
|
2635 | 2638 | self.showInput(); |
| 2639 | + self.positionDropdown(); |
2636 | 2640 | self.refreshOptions(true); |
2637 | 2641 |
|
2638 | 2642 | // select previous option |
|
0 commit comments