Skip to content

Commit 982ccaf

Browse files
committed
Released 0.8.4.
1 parent e423b17 commit 982ccaf

17 files changed

+41
-25
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "selectize",
33
"keywords": ["select", "ui", "form", "input", "control", "autocomplete", "tagging", "tag"],
44
"description": "Selectize is a jQuery-based custom <select> UI control. Useful for tagging, contact lists, country selectors, etc.",
5-
"version": "0.8.3",
5+
"version": "0.8.4",
66
"license": "Apache License, Version 2.0",
77
"readmeFilename": "README.md",
88
"repository": {

dist/css/selectize.bootstrap2.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* selectize.bootstrap2.css (v0.8.3) - Bootstrap 2 Theme
2+
* selectize.bootstrap2.css (v0.8.4) - Bootstrap 2 Theme
33
* Copyright (c) 2013 Brian Reavis & contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this

dist/css/selectize.bootstrap3.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* selectize.bootstrap3.css (v0.8.3) - Bootstrap 3 Theme
2+
* selectize.bootstrap3.css (v0.8.4) - Bootstrap 3 Theme
33
* Copyright (c) 2013 Brian Reavis & contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this

dist/css/selectize.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* selectize.css (v0.8.3)
2+
* selectize.css (v0.8.4)
33
* Copyright (c) 2013 Brian Reavis & contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this

dist/css/selectize.default.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* selectize.default.css (v0.8.3) - Default Theme
2+
* selectize.default.css (v0.8.4) - Default Theme
33
* Copyright (c) 2013 Brian Reavis & contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this

dist/css/selectize.legacy.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* selectize.legacy.css (v0.8.3) - Default Theme
2+
* selectize.legacy.css (v0.8.4) - Default Theme
33
* Copyright (c) 2013 Brian Reavis & contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this

dist/js/selectize.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* selectize.js (v0.8.3)
2+
* selectize.js (v0.8.4)
33
* Copyright (c) 2013 Brian Reavis & contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -877,8 +877,7 @@
877877
self.advanceSelection(1, e);
878878
return;
879879
case KEY_TAB:
880-
if (self.settings.create && $.trim(self.$control_input.val()).length) {
881-
self.createItem();
880+
if (self.settings.create && self.createItem()) {
882881
e.preventDefault();
883882
}
884883
return;
@@ -970,6 +969,10 @@
970969
self.isFocused = false;
971970
if (self.ignoreFocus) return;
972971

972+
if (self.settings.create && self.settings.createOnBlur) {
973+
self.createItem();
974+
}
975+
973976
self.close();
974977
self.setTextboxValue('');
975978
self.setActiveItem(null);
@@ -1762,12 +1765,14 @@
17621765
*
17631766
* Once this completes, it will be added
17641767
* to the item list.
1768+
*
1769+
* @return {boolean}
17651770
*/
17661771
createItem: function() {
17671772
var self = this;
17681773
var input = $.trim(self.$control_input.val() || '');
17691774
var caret = self.caretPos;
1770-
if (!input.length) return;
1775+
if (!input.length) return false;
17711776
self.lock();
17721777

17731778
var setup = (typeof self.settings.create === 'function') ? this.settings.create : function(input) {
@@ -1795,6 +1800,8 @@
17951800
if (typeof output !== 'undefined') {
17961801
create(output);
17971802
}
1803+
1804+
return true;
17981805
},
17991806

18001807
/**
@@ -2281,6 +2288,7 @@
22812288
persist: true,
22822289
diacritics: true,
22832290
create: false,
2291+
createOnBlur: false,
22842292
highlight: true,
22852293
openOnFocus: true,
22862294
maxOptions: 1000,

dist/js/selectize.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/standalone/selectize.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@
583583
}));
584584

585585
/**
586-
* selectize.js (v0.8.3)
586+
* selectize.js (v0.8.4)
587587
* Copyright (c) 2013 Brian Reavis & contributors
588588
*
589589
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -1461,8 +1461,7 @@
14611461
self.advanceSelection(1, e);
14621462
return;
14631463
case KEY_TAB:
1464-
if (self.settings.create && $.trim(self.$control_input.val()).length) {
1465-
self.createItem();
1464+
if (self.settings.create && self.createItem()) {
14661465
e.preventDefault();
14671466
}
14681467
return;
@@ -1554,6 +1553,10 @@
15541553
self.isFocused = false;
15551554
if (self.ignoreFocus) return;
15561555

1556+
if (self.settings.create && self.settings.createOnBlur) {
1557+
self.createItem();
1558+
}
1559+
15571560
self.close();
15581561
self.setTextboxValue('');
15591562
self.setActiveItem(null);
@@ -2346,12 +2349,14 @@
23462349
*
23472350
* Once this completes, it will be added
23482351
* to the item list.
2352+
*
2353+
* @return {boolean}
23492354
*/
23502355
createItem: function() {
23512356
var self = this;
23522357
var input = $.trim(self.$control_input.val() || '');
23532358
var caret = self.caretPos;
2354-
if (!input.length) return;
2359+
if (!input.length) return false;
23552360
self.lock();
23562361

23572362
var setup = (typeof self.settings.create === 'function') ? this.settings.create : function(input) {
@@ -2379,6 +2384,8 @@
23792384
if (typeof output !== 'undefined') {
23802385
create(output);
23812386
}
2387+
2388+
return true;
23822389
},
23832390

23842391
/**
@@ -2865,6 +2872,7 @@
28652872
persist: true,
28662873
diacritics: true,
28672874
create: false,
2875+
createOnBlur: false,
28682876
highlight: true,
28692877
openOnFocus: true,
28702878
maxOptions: 1000,

dist/js/standalone/selectize.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/less/selectize.bootstrap2.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* selectize.bootstrap2.css (v0.8.3) - Bootstrap 2 Theme
2+
* selectize.bootstrap2.css (v0.8.4) - Bootstrap 2 Theme
33
* Copyright (c) 2013 Brian Reavis & contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this

dist/less/selectize.bootstrap3.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* selectize.bootstrap3.css (v0.8.3) - Bootstrap 3 Theme
2+
* selectize.bootstrap3.css (v0.8.4) - Bootstrap 3 Theme
33
* Copyright (c) 2013 Brian Reavis & contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this

dist/less/selectize.default.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* selectize.default.css (v0.8.3) - Default Theme
2+
* selectize.default.css (v0.8.4) - Default Theme
33
* Copyright (c) 2013 Brian Reavis & contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this

dist/less/selectize.legacy.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* selectize.legacy.css (v0.8.3) - Default Theme
2+
* selectize.legacy.css (v0.8.4) - Default Theme
33
* Copyright (c) 2013 Brian Reavis & contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "selectize",
33
"keywords": ["select", "ui", "form", "input", "control", "autocomplete", "tagging", "tag"],
44
"description": "Selectize is a jQuery-based custom <select> UI control. Useful for tagging, contact lists, country selectors, etc.",
5-
"version": "0.8.3",
5+
"version": "0.8.4",
66
"author": "Brian Reavis <brian@thirdroute.com>",
77
"repository": {
88
"type": "git",

selectize.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "selectize",
3-
"version": "0.8.3",
3+
"version": "0.8.4",
44
"title": "Selectize.js",
55
"author": {
66
"name": "Brian Reavis",

src/selectize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ $.extend(Selectize.prototype, {
465465
* Invokes the user-provide option provider / loader.
466466
*
467467
* Note: this function is debounced in the Selectize
468-
* constructor (by `settings.loadThrottle` milliseconds)
468+
* constructor (by `settings.loadDelay` milliseconds)
469469
*
470470
* @param {string} value
471471
*/

0 commit comments

Comments
 (0)