summaryrefslogtreecommitdiff
path: root/share/www/script/jquery.dialog.js
diff options
context:
space:
mode:
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 dc8f9c5c..09902758 100644
--- a/share/www/script/jquery.dialog.js
+++ b/share/www/script/jquery.dialog.js
@@ -76,7 +76,7 @@
data[field.name] = field.value;
});
var errors = options.submit(data);
- if (errors == {}) {
+ if (errors == null || errors == {}) {
dismiss();
} else {
for (var name in errors) {