1
0
mirror of synced 2024-11-26 06:46:04 +03:00

Avoid locked options to be selected and deleted.

This commit is contained in:
jdecuyper 2013-09-03 17:20:35 -05:00
parent 418a659adb
commit 02dea18dc9

View File

@ -2445,7 +2445,7 @@ the specific language governing permissions and limitations under the Apache Lic
this.selection = selection = this.container.find(selector);
var _this = this;
this.selection.on("click", ".select2-search-choice", function (e) {
this.selection.on("click", ".select2-search-choice:not(.select2-locked)", function (e) {
//killEvent(e);
_this.search[0].focus();
_this.selectChoice($(this));