Rebuilt dist
This commit is contained in:
parent
ea538819c3
commit
989bd02649
3
dist/css/select2.css
vendored
3
dist/css/select2.css
vendored
@ -40,7 +40,8 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border: none;
|
border: none;
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
margin-top: 5px; }
|
margin-top: 5px;
|
||||||
|
padding: 0; }
|
||||||
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
||||||
-webkit-appearance: none; }
|
-webkit-appearance: none; }
|
||||||
|
|
||||||
|
2
dist/css/select2.min.css
vendored
2
dist/css/select2.min.css
vendored
File diff suppressed because one or more lines are too long
22
dist/js/select2.full.js
vendored
22
dist/js/select2.full.js
vendored
@ -1556,8 +1556,15 @@ S2.define('select2/selection/multiple',[
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$selection.on('click', '.select2-selection__choice__remove',
|
this.$selection.on(
|
||||||
|
'click',
|
||||||
|
'.select2-selection__choice__remove',
|
||||||
function (evt) {
|
function (evt) {
|
||||||
|
// Ignore the event if it is disabled
|
||||||
|
if (self.options.get('disabled')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var $remove = $(this);
|
var $remove = $(this);
|
||||||
var $selection = $remove.parent();
|
var $selection = $remove.parent();
|
||||||
|
|
||||||
@ -1567,7 +1574,8 @@ S2.define('select2/selection/multiple',[
|
|||||||
originalEvent: evt,
|
originalEvent: evt,
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
MultipleSelection.prototype.clear = function () {
|
MultipleSelection.prototype.clear = function () {
|
||||||
@ -3274,7 +3282,7 @@ S2.define('select2/data/array',[
|
|||||||
var existingData = this.item($existingOption);
|
var existingData = this.item($existingOption);
|
||||||
var newData = $.extend(true, {}, existingData, item);
|
var newData = $.extend(true, {}, existingData, item);
|
||||||
|
|
||||||
var $newOption = this.option(existingData);
|
var $newOption = this.option(newData);
|
||||||
|
|
||||||
$existingOption.replaceWith($newOption);
|
$existingOption.replaceWith($newOption);
|
||||||
|
|
||||||
@ -4014,6 +4022,12 @@ S2.define('select2/dropdown/attachBody',[
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
AttachBody.prototype.destroy = function (decorated) {
|
||||||
|
decorated.call(this);
|
||||||
|
|
||||||
|
this.$dropdownContainer.remove();
|
||||||
|
};
|
||||||
|
|
||||||
AttachBody.prototype.position = function (decorated, $dropdown, $container) {
|
AttachBody.prototype.position = function (decorated, $dropdown, $container) {
|
||||||
// Clone all of the container classes
|
// Clone all of the container classes
|
||||||
$dropdown.attr('class', $container.attr('class'));
|
$dropdown.attr('class', $container.attr('class'));
|
||||||
@ -4147,8 +4161,6 @@ S2.define('select2/dropdown/attachBody',[
|
|||||||
};
|
};
|
||||||
|
|
||||||
AttachBody.prototype._resizeDropdown = function () {
|
AttachBody.prototype._resizeDropdown = function () {
|
||||||
this.$dropdownContainer.width();
|
|
||||||
|
|
||||||
var css = {
|
var css = {
|
||||||
width: this.$container.outerWidth(false) + 'px'
|
width: this.$container.outerWidth(false) + 'px'
|
||||||
};
|
};
|
||||||
|
4
dist/js/select2.full.min.js
vendored
4
dist/js/select2.full.min.js
vendored
File diff suppressed because one or more lines are too long
22
dist/js/select2.js
vendored
22
dist/js/select2.js
vendored
@ -1556,8 +1556,15 @@ S2.define('select2/selection/multiple',[
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$selection.on('click', '.select2-selection__choice__remove',
|
this.$selection.on(
|
||||||
|
'click',
|
||||||
|
'.select2-selection__choice__remove',
|
||||||
function (evt) {
|
function (evt) {
|
||||||
|
// Ignore the event if it is disabled
|
||||||
|
if (self.options.get('disabled')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var $remove = $(this);
|
var $remove = $(this);
|
||||||
var $selection = $remove.parent();
|
var $selection = $remove.parent();
|
||||||
|
|
||||||
@ -1567,7 +1574,8 @@ S2.define('select2/selection/multiple',[
|
|||||||
originalEvent: evt,
|
originalEvent: evt,
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
MultipleSelection.prototype.clear = function () {
|
MultipleSelection.prototype.clear = function () {
|
||||||
@ -3274,7 +3282,7 @@ S2.define('select2/data/array',[
|
|||||||
var existingData = this.item($existingOption);
|
var existingData = this.item($existingOption);
|
||||||
var newData = $.extend(true, {}, existingData, item);
|
var newData = $.extend(true, {}, existingData, item);
|
||||||
|
|
||||||
var $newOption = this.option(existingData);
|
var $newOption = this.option(newData);
|
||||||
|
|
||||||
$existingOption.replaceWith($newOption);
|
$existingOption.replaceWith($newOption);
|
||||||
|
|
||||||
@ -4014,6 +4022,12 @@ S2.define('select2/dropdown/attachBody',[
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
AttachBody.prototype.destroy = function (decorated) {
|
||||||
|
decorated.call(this);
|
||||||
|
|
||||||
|
this.$dropdownContainer.remove();
|
||||||
|
};
|
||||||
|
|
||||||
AttachBody.prototype.position = function (decorated, $dropdown, $container) {
|
AttachBody.prototype.position = function (decorated, $dropdown, $container) {
|
||||||
// Clone all of the container classes
|
// Clone all of the container classes
|
||||||
$dropdown.attr('class', $container.attr('class'));
|
$dropdown.attr('class', $container.attr('class'));
|
||||||
@ -4147,8 +4161,6 @@ S2.define('select2/dropdown/attachBody',[
|
|||||||
};
|
};
|
||||||
|
|
||||||
AttachBody.prototype._resizeDropdown = function () {
|
AttachBody.prototype._resizeDropdown = function () {
|
||||||
this.$dropdownContainer.width();
|
|
||||||
|
|
||||||
var css = {
|
var css = {
|
||||||
width: this.$container.outerWidth(false) + 'px'
|
width: this.$container.outerWidth(false) + 'px'
|
||||||
};
|
};
|
||||||
|
4
dist/js/select2.min.js
vendored
4
dist/js/select2.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user