Skip to content

Commit

Permalink
new version 0.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel van Rijn committed Sep 3, 2013
1 parent 97108a7 commit 7454862
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 22 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ See the [demo page of Brian Reavis](http://brianreavis.github.io/selectize.js/)

| Version | Notes |
| -------:| ----------------------------------------------------------- |
| 0.7.4 | Update to v0.7.4 of selectize.js |
| 0.7.3 | Update to v0.7.3 of selectize.js |
| 0.7.2 | Update to v0.7.2 of selectize.js |
| 0.7.0 | Update to v0.7.0 of selectize.js |
Expand Down
2 changes: 1 addition & 1 deletion lib/selectize-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Selectize
module Rails
VERSION = "0.7.3"
VERSION = "0.7.4"
end
end
22 changes: 6 additions & 16 deletions vendor/assets/javascripts/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@
}));

/**
* selectize.js (v0.7.3)
* selectize.js (v0.7.4)
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down Expand Up @@ -1171,20 +1171,6 @@
}
},

/**
* Triggers a callback defined in the user-provided settings.
* Events: onItemAdd, onOptionAdd, etc
*
* @param {string} event
*/
triggerCallback: function(event) {
var args;
if (typeof this.settings[event] === 'function') {
args = Array.prototype.slice.apply(arguments, [1]);
this.settings[event].apply(this, args);
}
},

/**
* Triggered when the value of the control has been changed.
* This should propagate the event to the original DOM
Expand Down Expand Up @@ -2358,7 +2344,7 @@
}

// allow the callback to abort
if (!values.length || (typeof self.settings.onDelete === 'function' && self.settings.onDelete(values) === false)) {
if (!values.length || (typeof self.settings.onDelete === 'function' && self.settings.onDelete.apply(self, [values]) === false)) {
return false;
}

Expand Down Expand Up @@ -2939,6 +2925,10 @@
Selectize.define('remove_button', function(options) {
var self = this;

if (self.settings.mode === 'single') {
return;
}

// override the item rendering method to add a "x" to each
this.settings.render.item = function(data) {
var label = data[self.settings.labelField];
Expand Down
3 changes: 2 additions & 1 deletion vendor/assets/stylesheets/selectize.bootstrap2.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.bootstrap2.css (v0.7.3) - Bootstrap 2 Theme
* selectize.bootstrap2.css (v0.7.4) - Bootstrap 2 Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down Expand Up @@ -96,6 +96,7 @@
font-weight: bold;
color: inherit;
text-align: center;
text-decoration: none;
vertical-align: middle;
border-left: 1px solid #cccccc;
-webkit-border-radius: 0 2px 2px 0;
Expand Down
3 changes: 2 additions & 1 deletion vendor/assets/stylesheets/selectize.bootstrap3.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.bootstrap3.css (v0.7.3) - Bootstrap 3 Theme
* selectize.bootstrap3.css (v0.7.4) - Bootstrap 3 Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down Expand Up @@ -96,6 +96,7 @@
font-weight: bold;
color: inherit;
text-align: center;
text-decoration: none;
vertical-align: middle;
border-left: 1px solid rgba(0, 0, 0, 0);
-webkit-border-radius: 0 2px 2px 0;
Expand Down
3 changes: 2 additions & 1 deletion vendor/assets/stylesheets/selectize.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.css (v0.7.3)
* selectize.css (v0.7.4)
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down Expand Up @@ -96,6 +96,7 @@
font-weight: bold;
color: inherit;
text-align: center;
text-decoration: none;
vertical-align: middle;
border-left: 1px solid #d0d0d0;
-webkit-border-radius: 0 2px 2px 0;
Expand Down
3 changes: 2 additions & 1 deletion vendor/assets/stylesheets/selectize.default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.default.css (v0.7.3) - Default Theme
* selectize.default.css (v0.7.4) - Default Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down Expand Up @@ -96,6 +96,7 @@
font-weight: bold;
color: inherit;
text-align: center;
text-decoration: none;
vertical-align: middle;
border-left: 1px solid #0073bb;
-webkit-border-radius: 0 2px 2px 0;
Expand Down
3 changes: 2 additions & 1 deletion vendor/assets/stylesheets/selectize.legacy.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.legacy.css (v0.7.3) - Default Theme
* selectize.legacy.css (v0.7.4) - Default Theme
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down Expand Up @@ -96,6 +96,7 @@
font-weight: bold;
color: inherit;
text-align: center;
text-decoration: none;
vertical-align: middle;
border-left: 1px solid #74b21e;
-webkit-border-radius: 0 2px 2px 0;
Expand Down

0 comments on commit 7454862

Please sign in to comment.