diff options
author | Christopher Lenz <cmlenz@apache.org> | 2008-04-15 00:07:08 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2008-04-15 00:07:08 +0000 |
commit | 01060528e2f94e0ae4374eb3746093a868b6a2f2 (patch) | |
tree | ce7c28082894a84e6ad7a494e5fb034b274d1d6d /share/www/script/jquery.dialog.js | |
parent | 4c6263150674c231239b4e1aeee804a3c5974c9a (diff) |
Merged futon-async branch back into trunk.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@648074 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/jquery.dialog.js')
-rw-r--r-- | share/www/script/jquery.dialog.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/share/www/script/jquery.dialog.js b/share/www/script/jquery.dialog.js index 09902758..1fd3d572 100644 --- a/share/www/script/jquery.dialog.js +++ b/share/www/script/jquery.dialog.js @@ -75,14 +75,15 @@ $.each($("form :input", dialog).serializeArray(), function(i, field) { data[field.name] = field.value; }); - var errors = options.submit(data); - if (errors == null || errors == {}) { - dismiss(); - } else { - for (var name in errors) { - showError(name, errors[name]); + options.submit(data, function callback(errors) { + if (errors == null || errors == {}) { + dismiss(); + } else { + for (var name in errors) { + showError(name, errors[name]); + } } - } + }); return false; }); }); |