summaryrefslogtreecommitdiff
path: root/share/www/script/jquery.dialog.js
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-02-14 18:17:19 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-02-14 18:17:19 +0000
commit2de803188f6a9fea703bc1f02679e8fc29050297 (patch)
tree9a85e452e4cf273359d4d964d0c9b990657ee32c /share/www/script/jquery.dialog.js
parent64a52c788a5b7efb633b8a09d495665ed9a976b7 (diff)
fix futon to use _security object. thanks Filipe Manana, closes COUCHDB-654
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@910054 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/jquery.dialog.js')
-rw-r--r--share/www/script/jquery.dialog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/www/script/jquery.dialog.js b/share/www/script/jquery.dialog.js
index 41dd08e6..02c0c497 100644
--- a/share/www/script/jquery.dialog.js
+++ b/share/www/script/jquery.dialog.js
@@ -79,7 +79,7 @@
data[this.name] = this.value; // file inputs need special handling
});
options.submit(data, function callback(errors) {
- if (errors == null || errors == {}) {
+ if ($.isEmptyObject(errors)) {
dismiss();
} else {
for (var name in errors) {