selectize-rails 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -41,6 +41,7 @@ See the [demo page of Brian Reavis](http://brianreavis.github.io/selectize.js/)
41
41
 
42
42
  | Version | Notes |
43
43
  | -------:| ----------------------------------------------------------- |
44
+ | 0.7.4 | Update to v0.7.4 of selectize.js |
44
45
  | 0.7.3 | Update to v0.7.3 of selectize.js |
45
46
  | 0.7.2 | Update to v0.7.2 of selectize.js |
46
47
  | 0.7.0 | Update to v0.7.0 of selectize.js |
@@ -1,5 +1,5 @@
1
1
  module Selectize
2
2
  module Rails
3
- VERSION = "0.7.3"
3
+ VERSION = "0.7.4"
4
4
  end
5
5
  end
@@ -463,7 +463,7 @@
463
463
  }));
464
464
 
465
465
  /**
466
- * selectize.js (v0.7.3)
466
+ * selectize.js (v0.7.4)
467
467
  * Copyright (c) 2013 Brian Reavis & contributors
468
468
  *
469
469
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -1171,20 +1171,6 @@
1171
1171
  }
1172
1172
  },
1173
1173
 
1174
- /**
1175
- * Triggers a callback defined in the user-provided settings.
1176
- * Events: onItemAdd, onOptionAdd, etc
1177
- *
1178
- * @param {string} event
1179
- */
1180
- triggerCallback: function(event) {
1181
- var args;
1182
- if (typeof this.settings[event] === 'function') {
1183
- args = Array.prototype.slice.apply(arguments, [1]);
1184
- this.settings[event].apply(this, args);
1185
- }
1186
- },
1187
-
1188
1174
  /**
1189
1175
  * Triggered when the value of the control has been changed.
1190
1176
  * This should propagate the event to the original DOM
@@ -2358,7 +2344,7 @@
2358
2344
  }
2359
2345
 
2360
2346
  // allow the callback to abort
2361
- if (!values.length || (typeof self.settings.onDelete === 'function' && self.settings.onDelete(values) === false)) {
2347
+ if (!values.length || (typeof self.settings.onDelete === 'function' && self.settings.onDelete.apply(self, [values]) === false)) {
2362
2348
  return false;
2363
2349
  }
2364
2350
 
@@ -2939,6 +2925,10 @@
2939
2925
  Selectize.define('remove_button', function(options) {
2940
2926
  var self = this;
2941
2927
 
2928
+ if (self.settings.mode === 'single') {
2929
+ return;
2930
+ }
2931
+
2942
2932
  // override the item rendering method to add a "x" to each
2943
2933
  this.settings.render.item = function(data) {
2944
2934
  var label = data[self.settings.labelField];
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.bootstrap2.css (v0.7.3) - Bootstrap 2 Theme
2
+ * selectize.bootstrap2.css (v0.7.4) - 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
@@ -96,6 +96,7 @@
96
96
  font-weight: bold;
97
97
  color: inherit;
98
98
  text-align: center;
99
+ text-decoration: none;
99
100
  vertical-align: middle;
100
101
  border-left: 1px solid #cccccc;
101
102
  -webkit-border-radius: 0 2px 2px 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.bootstrap3.css (v0.7.3) - Bootstrap 3 Theme
2
+ * selectize.bootstrap3.css (v0.7.4) - 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
@@ -96,6 +96,7 @@
96
96
  font-weight: bold;
97
97
  color: inherit;
98
98
  text-align: center;
99
+ text-decoration: none;
99
100
  vertical-align: middle;
100
101
  border-left: 1px solid rgba(0, 0, 0, 0);
101
102
  -webkit-border-radius: 0 2px 2px 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.css (v0.7.3)
2
+ * selectize.css (v0.7.4)
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
@@ -96,6 +96,7 @@
96
96
  font-weight: bold;
97
97
  color: inherit;
98
98
  text-align: center;
99
+ text-decoration: none;
99
100
  vertical-align: middle;
100
101
  border-left: 1px solid #d0d0d0;
101
102
  -webkit-border-radius: 0 2px 2px 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.default.css (v0.7.3) - Default Theme
2
+ * selectize.default.css (v0.7.4) - 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
@@ -96,6 +96,7 @@
96
96
  font-weight: bold;
97
97
  color: inherit;
98
98
  text-align: center;
99
+ text-decoration: none;
99
100
  vertical-align: middle;
100
101
  border-left: 1px solid #0073bb;
101
102
  -webkit-border-radius: 0 2px 2px 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * selectize.legacy.css (v0.7.3) - Default Theme
2
+ * selectize.legacy.css (v0.7.4) - 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
@@ -96,6 +96,7 @@
96
96
  font-weight: bold;
97
97
  color: inherit;
98
98
  text-align: center;
99
+ text-decoration: none;
99
100
  vertical-align: middle;
100
101
  border-left: 1px solid #74b21e;
101
102
  -webkit-border-radius: 0 2px 2px 0;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selectize-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-02 00:00:00.000000000 Z
12
+ date: 2013-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler