selectize-rails 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0441f5943f79fa3667c42e33fe1647cbf33db109
4
- data.tar.gz: 0ee23ef979f90b307ac9127f64c93eb1168a9af2
3
+ metadata.gz: 83e805fa623f010e488f7d9f752b5e53bb58ccca
4
+ data.tar.gz: eb0b8b83577f5938df7590c484070148899a5c70
5
5
  SHA512:
6
- metadata.gz: 9be22d0d6e71dbdd60ebbf05adb7fa1275cba3c7c9c4891c23e52e0e58ba5723b27163b0e677617035508f8feeac7747dc0c1631cff5502683f6df58dfdd88b6
7
- data.tar.gz: 3a28613b7cac685a11b8b397645dde22761c057eb4db49d47c8b81e9bcc9dc34e25cbde8cdf37caf892db5e14798511361928c23d6510a0a1adfc96764367f91
6
+ metadata.gz: 118382c5d79b39be6d46413a1516d309f4947962d67801ba9ec16f8a6d2f6a4f25aa6070ee2f03244e8b3657982c8c55603224187bab359259bb2cf637f2f1ab
7
+ data.tar.gz: c95ad1b729cba0c274b720d6bee7e4df8b165a4d1364dffb49ee05644c7cc8ae81654cc3458061d3efe3bab728f471246b3c1f48321ee8f123fe2c4152e11c43
data/CHANGELOG.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Version | Notes |
4
4
  | -------:| ----------------------------------------------------------- |
5
+ | 0.8.5 | Update to v0.8.5 of selectize.js |
5
6
  | 0.8.4 | Update to v0.8.4 of selectize.js |
6
7
  | 0.8.3 | Update to v0.8.3 of selectize.js |
7
8
  | 0.8.1 | Update to v0.8.1 of selectize.js |
data/README.md CHANGED
@@ -41,11 +41,11 @@ See the [demo page of Brian Reavis](http://brianreavis.github.io/selectize.js/)
41
41
 
42
42
  | Version | Notes |
43
43
  | -------:| ----------------------------------------------------------- |
44
+ | 0.8.5 | Update to v0.8.5 of selectize.js |
44
45
  | 0.8.4 | Update to v0.8.4 of selectize.js |
45
46
  | 0.8.3 | Update to v0.8.3 of selectize.js |
46
47
  | 0.8.1 | Update to v0.8.1 of selectize.js |
47
48
  | 0.8.0 | Update to v0.8.0 of selectize.js |
48
- | 0.7.7 | Update to v0.7.7 of selectize.js |
49
49
 
50
50
  [older](CHANGELOG.md)
51
51
 
@@ -1,5 +1,5 @@
1
1
  module Selectize
2
2
  module Rails
3
- VERSION = "0.8.4"
3
+ VERSION = "0.8.5"
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@
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,7 +464,7 @@
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 {
@@ -583,7 +583,7 @@
583
583
  }));
584
584
 
585
585
  /**
586
- * selectize.js (v0.8.4)
586
+ * selectize.js (v0.8.5)
587
587
  * Copyright (c) 2013 Brian Reavis & contributors
588
588
  *
589
589
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -603,7 +603,7 @@
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,12 +1799,15 @@
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,6 +2636,7 @@
2633
2636
  }
2634
2637
 
2635
2638
  self.showInput();
2639
+ self.positionDropdown();
2636
2640
  self.refreshOptions(true);
2637
2641
 
2638
2642
  // select previous option
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.bootstrap2.css (v0.8.4) - Bootstrap 2 Theme
2
+ * selectize.bootstrap2.css (v0.8.5) - Bootstrap 2 Theme
3
3
  * Copyright (c) 2013 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.bootstrap3.css (v0.8.4) - Bootstrap 3 Theme
2
+ * selectize.bootstrap3.css (v0.8.5) - Bootstrap 3 Theme
3
3
  * Copyright (c) 2013 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -297,12 +297,12 @@
297
297
  }
298
298
 
299
299
  .selectize-dropdown .active {
300
- color: #ffffff;
301
- background-color: #428bca;
300
+ color: #262626;
301
+ background-color: #f5f5f5;
302
302
  }
303
303
 
304
304
  .selectize-dropdown .active.create {
305
- color: #ffffff;
305
+ color: #262626;
306
306
  }
307
307
 
308
308
  .selectize-dropdown .create {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.css (v0.8.4)
2
+ * selectize.css (v0.8.5)
3
3
  * Copyright (c) 2013 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.default.css (v0.8.4) - Default Theme
2
+ * selectize.default.css (v0.8.5) - Default Theme
3
3
  * Copyright (c) 2013 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.legacy.css (v0.8.4) - Default Theme
2
+ * selectize.legacy.css (v0.8.5) - Default Theme
3
3
  * Copyright (c) 2013 Brian Reavis & contributors
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selectize-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel van Rijn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-20 00:00:00.000000000 Z
11
+ date: 2013-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler