equal
deleted
inserted
replaced
649 |
649 |
650 var settings = $.extend({}, dataOptions, data.amsSelect2Options); |
650 var settings = $.extend({}, dataOptions, data.amsSelect2Options); |
651 settings = ams.executeFunctionByName(data.amsSelect2InitCallback, select, settings) || settings; |
651 settings = ams.executeFunctionByName(data.amsSelect2InitCallback, select, settings) || settings; |
652 var plugin = select.select2(settings); |
652 var plugin = select.select2(settings); |
653 ams.executeFunctionByName(data.amsSelect2AfterInitCallback, select, plugin, settings); |
653 ams.executeFunctionByName(data.amsSelect2AfterInitCallback, select, plugin, settings); |
654 if (select.hasClass('ordered')) { |
654 if (select.hasClass('ordered') && !select.prop('disabled')) { |
655 ams.ajax && ams.ajax.check($.fn.select2Sortable, |
655 ams.ajax && ams.ajax.check($.fn.select2Sortable, |
656 ams.baseURL + 'ext/jquery-select2-sortable' + ams.devext + '.js', |
656 ams.baseURL + 'ext/jquery-select2-sortable' + ams.devext + '.js', |
657 function() { |
657 function() { |
658 select.select2Sortable({ |
658 select.select2Sortable({ |
659 bindOrder: 'sortableStop' |
659 bindOrder: 'sortableStop' |