tutorial and help texts for tags in new resource form
[redakcja.git] / redakcja / static / js / catalogue / catalogue.js
index 796e3e8..a750b77 100755 (executable)
             }
         });
 
+        $('.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