diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/futon.browse.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index 408d34cc..924372cf 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -1095,10 +1095,11 @@ row.find("td").makeEditable({acceptOnBlur: false, allowEmpty: true, createInput: function(value) { + value = doc[row.data("name")]; var elem = $(this); if (elem.find("dl").length > 0 || elem.find("code").is(".array, .object") || - elem.find("code.string").text().length > 60) { + typeof(value) == "string" && (value.length > 60 || value.match(/\n/))) { return $("<textarea rows='1' cols='40' spellcheck='false'></textarea>"); } return $("<input type='text' spellcheck='false'>"); |