From 5660f34854b9e66c97e9f035b71dd2ba6022726c Mon Sep 17 00:00:00 2001 From: Peter Johannesson Date: Tue, 26 Jun 2012 09:46:51 +0200 Subject: [PATCH 1/3] Set width as css rules instead of attributes --- jquery.jeditable.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jquery.jeditable.js b/jquery.jeditable.js index eb8a911..082e554 100644 --- a/jquery.jeditable.js +++ b/jquery.jeditable.js @@ -452,8 +452,8 @@ text: { element : function(settings, original) { var input = $(''); - if (settings.width != 'none') { input.attr('width', settings.width); } - if (settings.height != 'none') { input.attr('height', settings.height); } + if (settings.width != 'none') { input.css('width', settings.width + 'px'); } + if (settings.height != 'none') { input.css('height', settings.height + 'px'); } /* https://bugzilla.mozilla.org/show_bug.cgi?id=236791 */ //input[0].setAttribute('autocomplete','off'); input.attr('autocomplete','off'); @@ -481,6 +481,7 @@ select: { element : function(settings, original) { var select = $('