Skip to content

Commit

Permalink
Released 0.8.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianreavis committed Nov 14, 2013
1 parent e423b17 commit 982ccaf
Show file tree
Hide file tree
Showing 17 changed files with 41 additions and 25 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "selectize",
"keywords": ["select", "ui", "form", "input", "control", "autocomplete", "tagging", "tag"],
"description": "Selectize is a jQuery-based custom <select> UI control. Useful for tagging, contact lists, country selectors, etc.",
"version": "0.8.3",
"version": "0.8.4",
"license": "Apache License, Version 2.0",
"readmeFilename": "README.md",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion dist/css/selectize.bootstrap2.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.bootstrap2.css (v0.8.3) - Bootstrap 2 Theme
* selectize.bootstrap2.css (v0.8.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
2 changes: 1 addition & 1 deletion dist/css/selectize.bootstrap3.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.bootstrap3.css (v0.8.3) - Bootstrap 3 Theme
* selectize.bootstrap3.css (v0.8.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
2 changes: 1 addition & 1 deletion dist/css/selectize.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.css (v0.8.3)
* selectize.css (v0.8.4)
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
Expand Down
2 changes: 1 addition & 1 deletion dist/css/selectize.default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.default.css (v0.8.3) - Default Theme
* selectize.default.css (v0.8.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
2 changes: 1 addition & 1 deletion dist/css/selectize.legacy.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.legacy.css (v0.8.3) - Default Theme
* selectize.legacy.css (v0.8.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
16 changes: 12 additions & 4 deletions dist/js/selectize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.js (v0.8.3)
* selectize.js (v0.8.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 @@ -877,8 +877,7 @@
self.advanceSelection(1, e);
return;
case KEY_TAB:
if (self.settings.create && $.trim(self.$control_input.val()).length) {
self.createItem();
if (self.settings.create && self.createItem()) {
e.preventDefault();
}
return;
Expand Down Expand Up @@ -970,6 +969,10 @@
self.isFocused = false;
if (self.ignoreFocus) return;

if (self.settings.create && self.settings.createOnBlur) {
self.createItem();
}

self.close();
self.setTextboxValue('');
self.setActiveItem(null);
Expand Down Expand Up @@ -1762,12 +1765,14 @@
*
* Once this completes, it will be added
* to the item list.
*
* @return {boolean}
*/
createItem: function() {
var self = this;
var input = $.trim(self.$control_input.val() || '');
var caret = self.caretPos;
if (!input.length) return;
if (!input.length) return false;
self.lock();

var setup = (typeof self.settings.create === 'function') ? this.settings.create : function(input) {
Expand Down Expand Up @@ -1795,6 +1800,8 @@
if (typeof output !== 'undefined') {
create(output);
}

return true;
},

/**
Expand Down Expand Up @@ -2281,6 +2288,7 @@
persist: true,
diacritics: true,
create: false,
createOnBlur: false,
highlight: true,
openOnFocus: true,
maxOptions: 1000,
Expand Down
4 changes: 2 additions & 2 deletions dist/js/selectize.min.js

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions dist/js/standalone/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@
}));

/**
* selectize.js (v0.8.3)
* selectize.js (v0.8.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 @@ -1461,8 +1461,7 @@
self.advanceSelection(1, e);
return;
case KEY_TAB:
if (self.settings.create && $.trim(self.$control_input.val()).length) {
self.createItem();
if (self.settings.create && self.createItem()) {
e.preventDefault();
}
return;
Expand Down Expand Up @@ -1554,6 +1553,10 @@
self.isFocused = false;
if (self.ignoreFocus) return;

if (self.settings.create && self.settings.createOnBlur) {
self.createItem();
}

self.close();
self.setTextboxValue('');
self.setActiveItem(null);
Expand Down Expand Up @@ -2346,12 +2349,14 @@
*
* Once this completes, it will be added
* to the item list.
*
* @return {boolean}
*/
createItem: function() {
var self = this;
var input = $.trim(self.$control_input.val() || '');
var caret = self.caretPos;
if (!input.length) return;
if (!input.length) return false;
self.lock();

var setup = (typeof self.settings.create === 'function') ? this.settings.create : function(input) {
Expand Down Expand Up @@ -2379,6 +2384,8 @@
if (typeof output !== 'undefined') {
create(output);
}

return true;
},

/**
Expand Down Expand Up @@ -2865,6 +2872,7 @@
persist: true,
diacritics: true,
create: false,
createOnBlur: false,
highlight: true,
openOnFocus: true,
maxOptions: 1000,
Expand Down
4 changes: 2 additions & 2 deletions dist/js/standalone/selectize.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/less/selectize.bootstrap2.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.bootstrap2.css (v0.8.3) - Bootstrap 2 Theme
* selectize.bootstrap2.css (v0.8.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
2 changes: 1 addition & 1 deletion dist/less/selectize.bootstrap3.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.bootstrap3.css (v0.8.3) - Bootstrap 3 Theme
* selectize.bootstrap3.css (v0.8.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
2 changes: 1 addition & 1 deletion dist/less/selectize.default.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.default.css (v0.8.3) - Default Theme
* selectize.default.css (v0.8.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
2 changes: 1 addition & 1 deletion dist/less/selectize.legacy.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* selectize.legacy.css (v0.8.3) - Default Theme
* selectize.legacy.css (v0.8.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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "selectize",
"keywords": ["select", "ui", "form", "input", "control", "autocomplete", "tagging", "tag"],
"description": "Selectize is a jQuery-based custom <select> UI control. Useful for tagging, contact lists, country selectors, etc.",
"version": "0.8.3",
"version": "0.8.4",
"author": "Brian Reavis <brian@thirdroute.com>",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion selectize.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "selectize",
"version": "0.8.3",
"version": "0.8.4",
"title": "Selectize.js",
"author": {
"name": "Brian Reavis",
Expand Down
2 changes: 1 addition & 1 deletion src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ $.extend(Selectize.prototype, {
* Invokes the user-provide option provider / loader.
*
* Note: this function is debounced in the Selectize
* constructor (by `settings.loadThrottle` milliseconds)
* constructor (by `settings.loadDelay` milliseconds)
*
* @param {string} value
*/
Expand Down

0 comments on commit 982ccaf

Please sign in to comment.