X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0a92dff0038fdf2c3931f8dee78594e17cb14efe..eb769f1b951951ebd6cb55060f2f61a8c25d5aac:/redakcja/static/js/catalogue/catalogue.js diff --git a/redakcja/static/js/catalogue/catalogue.js b/redakcja/static/js/catalogue/catalogue.js index 796e3e8b..04fedce7 100755 --- a/redakcja/static/js/catalogue/catalogue.js +++ b/redakcja/static/js/catalogue/catalogue.js @@ -51,6 +51,17 @@ } }); + if ($.isFunction($.fn.chosen)) { + $('.chosen-select').chosen().each(function () { + var widget = $(this.nextSibling), $t = $(this); + $.each($.merge([], this.attributes), function () { + if (this.name.substr(0, 5) === 'data-') { + $t.removeAttr(this.name); + widget.attr(this.name, this.value); + } + }); + }); + } // tutorial mode