portal.mkgtu.ru/frontend/web/js/depdrop_cospom.min.js

1 line
391 B
JavaScript
Executable File

var initDepdropS2;!function(e){"use strict";initDepdropS2=function(n,o){var a=e("#"+n),i=e("#select2-"+n+"-container"),t="...";a.on("depdrop:beforeChange",function(){a.find("option").attr("value",t).html(o),a.val(t),a.select2("val",t),i.removeClass("kv-loading").addClass("kv-loading")}).on("depdrop:afterChange",function(){a.trigger("change"),i.removeClass("kv-loading")})}}(window.jQuery);