From 68221f37e1aa010695d317f01199fe1f1f91c095 Mon Sep 17 00:00:00 2001 From: Aliaxandr Date: Mon, 13 Aug 2012 17:33:49 +0300 Subject: [PATCH] trim text before pasting to input --- js/jquery.jeditable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.jeditable.js b/js/jquery.jeditable.js index bee2845..1ddde93 100644 --- a/js/jquery.jeditable.js +++ b/js/jquery.jeditable.js @@ -310,7 +310,7 @@ jQuery.editable = { return(input); }, content : function(string, settings, original) { - jQuery(':input:first', this).val(string); + jQuery(':input:first', this).val($.trim(string)); }, buttons : function(settings, original) { if (settings.submit) {