Skip to content

Commit 0ad43dc

Browse files
committed
Released 0.8.1.
1 parent 249226c commit 0ad43dc

16 files changed

+48
-22
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.0",
5+
"version": "0.8.1",
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.0) - Bootstrap 2 Theme
2+
* selectize.bootstrap2.css (v0.8.1) - 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.0) - Bootstrap 3 Theme
2+
* selectize.bootstrap3.css (v0.8.1) - 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.0)
2+
* selectize.css (v0.8.1)
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.0) - Default Theme
2+
* selectize.default.css (v0.8.1) - 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.0) - Default Theme
2+
* selectize.legacy.css (v0.8.1) - 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: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* selectize.js (v0.8.0)
2+
* selectize.js (v0.8.1)
33
* Copyright (c) 2013 Brian Reavis & contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -633,6 +633,13 @@
633633
self.ignoreHover = false;
634634
});
635635

636+
// store original children and tab index so that they can be
637+
// restored when the destroy() method is called.
638+
this.revertSettings = {
639+
$children : self.$input.children().detach(),
640+
tabindex : self.$input.attr('tabindex')
641+
};
642+
636643
self.$input.attr('tabindex', -1).hide().after(self.$wrapper);
637644

638645
if ($.isArray(settings.items)) {
@@ -2175,12 +2182,18 @@
21752182
destroy: function() {
21762183
var self = this;
21772184
var eventNS = self.eventNS;
2185+
var revertSettings = self.revertSettings;
21782186

21792187
self.trigger('destroy');
21802188
self.off();
21812189
self.$wrapper.remove();
21822190
self.$dropdown.remove();
2183-
self.$input.show();
2191+
2192+
self.$input
2193+
.html('')
2194+
.append(revertSettings.$children)
2195+
.attr({tabindex: revertSettings.tabindex})
2196+
.show();
21842197

21852198
$(window).off(eventNS);
21862199
$(document).off(eventNS);

dist/js/selectize.min.js

Lines changed: 3 additions & 3 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: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@
583583
}));
584584

585585
/**
586-
* selectize.js (v0.8.0)
586+
* selectize.js (v0.8.1)
587587
* Copyright (c) 2013 Brian Reavis & contributors
588588
*
589589
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
@@ -1217,6 +1217,13 @@
12171217
self.ignoreHover = false;
12181218
});
12191219

1220+
// store original children and tab index so that they can be
1221+
// restored when the destroy() method is called.
1222+
this.revertSettings = {
1223+
$children : self.$input.children().detach(),
1224+
tabindex : self.$input.attr('tabindex')
1225+
};
1226+
12201227
self.$input.attr('tabindex', -1).hide().after(self.$wrapper);
12211228

12221229
if ($.isArray(settings.items)) {
@@ -2759,12 +2766,18 @@
27592766
destroy: function() {
27602767
var self = this;
27612768
var eventNS = self.eventNS;
2769+
var revertSettings = self.revertSettings;
27622770

27632771
self.trigger('destroy');
27642772
self.off();
27652773
self.$wrapper.remove();
27662774
self.$dropdown.remove();
2767-
self.$input.show();
2775+
2776+
self.$input
2777+
.html('')
2778+
.append(revertSettings.$children)
2779+
.attr({tabindex: revertSettings.tabindex})
2780+
.show();
27682781

27692782
$(window).off(eventNS);
27702783
$(document).off(eventNS);

dist/js/standalone/selectize.min.js

Lines changed: 3 additions & 3 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.0) - Bootstrap 2 Theme
2+
* selectize.bootstrap2.css (v0.8.1) - 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.0) - Bootstrap 3 Theme
2+
* selectize.bootstrap3.css (v0.8.1) - 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.0) - Default Theme
2+
* selectize.default.css (v0.8.1) - 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.0) - Default Theme
2+
* selectize.legacy.css (v0.8.1) - 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.0",
5+
"version": "0.8.1",
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.0",
3+
"version": "0.8.1",
44
"title": "Selectize.js",
55
"author": {
66
"name": "Brian Reavis",

0 commit comments

Comments
 (0)