X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1cfa04c50e48ee081f8ae02d9a54849b08fddd38..cff42cc9b51c24b47583c8b8a3a5ae5a6b837f43:/media/js/jquery.cuteform.js diff --git a/media/js/jquery.cuteform.js b/media/js/jquery.cuteform.js new file mode 100644 index 000000000..7993634f8 --- /dev/null +++ b/media/js/jquery.cuteform.js @@ -0,0 +1,13 @@ +(function($) { + $.fn.cuteform = function() { + $('form.cuteform', this).each(function(index) { + var formLabels = $('label', this) + var maxWidth = 0; + + formLabels.each(function() { + maxWidth = max(maxWidth, this); + }); + formLabels.width(maxWidth); + }); + }; +})(jQuery) \ No newline at end of file