Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Prev Previous commit
Next Next commit
Reverted dist Directory
  • Loading branch information
jhash committed Aug 12, 2014
commit 192d56e1ed69d41d2786e182bb67ad281d974007
20 changes: 2 additions & 18 deletions dist/js/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -836,16 +836,6 @@
var self = this;
if (self.isFull() || self.isInputHidden || self.isLocked) {
e.preventDefault();
} else {
// If a regex or string is included, this will split the pasted input and create Items for each separate value
if (self.settings.splitOn) {
setTimeout($.proxy(function() {
var splitInput = $.trim(self.$control_input.val() || '').split(self.settings.splitOn);
splitInput.forEach($.proxy(function(input) {
self.createItem(input);
}, self));
}, self), 0);
}
}
},

Expand Down Expand Up @@ -1852,18 +1842,13 @@
var self = this;
var input = $.trim(self.$control_input.val() || '');
var caret = self.caretPos;
if (!input.length) return false;
self.lock();

if (typeof triggerDropdown === 'undefined') {
triggerDropdown = true;

// allow a string to be passed in, like the API docs say
} else if (typeof triggerDropdown === 'string') {
input = triggerDropdown;
}

if (!input.length) return false;
self.lock();

var setup = (typeof self.settings.create === 'function') ? this.settings.create : function(input) {
var data = {};
data[self.settings.labelField] = input;
Expand Down Expand Up @@ -2375,7 +2360,6 @@
Selectize.defaults = {
plugins: [],
delimiter: ',',
splitOn: /[,]+/, // Regex or string for splitting up values from a paste command
persist: true,
diacritics: true,
create: false,
Expand Down
4 changes: 2 additions & 2 deletions dist/js/selectize.min.js

Large diffs are not rendered by default.

20 changes: 2 additions & 18 deletions dist/js/standalone/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -1422,16 +1422,6 @@
var self = this;
if (self.isFull() || self.isInputHidden || self.isLocked) {
e.preventDefault();
} else {
// If a regex or string is included, this will split the pasted input and create Items for each separate value
if (self.settings.splitOn) {
setTimeout($.proxy(function() {
var splitInput = $.trim(self.$control_input.val() || '').split(self.settings.splitOn);
splitInput.forEach($.proxy(function(input) {
self.createItem(input);
}, self));
}, self), 0);
}
}
},

Expand Down Expand Up @@ -2438,18 +2428,13 @@
var self = this;
var input = $.trim(self.$control_input.val() || '');
var caret = self.caretPos;
if (!input.length) return false;
self.lock();

if (typeof triggerDropdown === 'undefined') {
triggerDropdown = true;

// allow a string to be passed in, like the API docs say
} else if (typeof triggerDropdown === 'string') {
input = triggerDropdown;
}

if (!input.length) return false;
self.lock();

var setup = (typeof self.settings.create === 'function') ? this.settings.create : function(input) {
var data = {};
data[self.settings.labelField] = input;
Expand Down Expand Up @@ -2961,7 +2946,6 @@
Selectize.defaults = {
plugins: [],
delimiter: ',',
splitOn: /[,]+/, // Regex or string for splitting up values from a paste command
persist: true,
diacritics: true,
create: false,
Expand Down
4 changes: 2 additions & 2 deletions dist/js/standalone/selectize.min.js

Large diffs are not rendered by default.