better ordering for tags
[redakcja.git] / redakcja / static / js / catalogue / catalogue.js
index 796e3e8..04fedce 100755 (executable)
             }
         });
 
+        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