aboutsummaryrefslogtreecommitdiffstats
path: root/js/main.js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-16 00:51:03 -0700
committerfriendica <info@friendica.com>2012-08-16 00:51:03 -0700
commiteb911443aaee63f414cd95de4dabf60e2f14a994 (patch)
tree7c8eb42e2602b572f430474648aec611f0c20c47 /js/main.js
parent5b547ae991624924c0ef11dbe36ae57f5ec2182b (diff)
downloadvolse-hubzilla-eb911443aaee63f414cd95de4dabf60e2f14a994.tar.gz
volse-hubzilla-eb911443aaee63f414cd95de4dabf60e2f14a994.tar.bz2
volse-hubzilla-eb911443aaee63f414cd95de4dabf60e2f14a994.zip
more zregister cleanup and theme separation
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");
+ }
+ }
+