From f4aa228848f8b465ae5ea3088ef02a04051feeac Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Tue, 21 Jul 2009 21:42:59 +0000 Subject: Fix for COUCHDB-318: when adding or renaming a field in Futon, check that a field with the same name does not already exist. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796548 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/jquery.editinline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/www/script/jquery.editinline.js') diff --git a/share/www/script/jquery.editinline.js b/share/www/script/jquery.editinline.js index e3a33155..e677b982 100644 --- a/share/www/script/jquery.editinline.js +++ b/share/www/script/jquery.editinline.js @@ -50,7 +50,7 @@ return true; } if ((!options.allowEmpty && !newText.length) || - !options.validate.apply(elem, [newText])) { + !options.validate.apply(elem, [newText, origText])) { input.addClass("invalid"); return false; } -- cgit v1.2.3