Changed login method.
[wolnelektury.git] / media / js / jquery.cuteform.js
index 7993634..ee1a158 100644 (file)
@@ -1,13 +1,12 @@
 (function($) {
-    $.fn.cuteform = function() {
-        $('form.cuteform', this).each(function(index) {
+    $(document).ready(function() {
+        $('form.cuteform').each(function(index) {
             var formLabels = $('label', this)
             var maxWidth = 0;
-            
+    
             formLabels.each(function() {
-                maxWidth = max(maxWidth, this);
-            });
-            formLabels.width(maxWidth);
+                maxWidth = Math.max(maxWidth, $(this).width());
+            }).css({display: 'inline-block'}).width(maxWidth);
         });
-    };
-})(jQuery)
\ No newline at end of file
+    });
+})(jQuery);
\ No newline at end of file