aboutsummaryrefslogtreecommitdiffstats
path: root/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.js')
-rw-r--r--js/main.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index b1ebd80e0..e33f21940 100644
--- a/js/main.js
+++ b/js/main.js
@@ -851,3 +851,14 @@ $("abbr.wall-item-ago-time").timeago();
});
+ function zFormError(elm,x) {
+ if(x) {
+ $(elm).addClass("zform-error");
+ $(elm).removeClass("zform-ok");
+ }
+ else {
+ $(elm).addClass("zform-ok");
+ $(elm).removeClass("zform-error");
+ }
+ }
+