From c360565d0a52dc5e9cc679703191e20373792dde Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 13 Dec 2012 04:47:06 -0800 Subject: get rid of undefined $ error by mangling theme specific JS include order --- js/main.js | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'js') diff --git a/js/main.js b/js/main.js index 116cd5aeb..e9ff2fc88 100644 --- a/js/main.js +++ b/js/main.js @@ -870,6 +870,23 @@ $("abbr.wall-item-ago-time").timeago(); //reCalcHeight(); + + + +}); + + function zFormError(elm,x) { + if(x) { + $(elm).addClass("zform-error"); + $(elm).removeClass("zform-ok"); + } + else { + $(elm).addClass("zform-ok"); + $(elm).removeClass("zform-error"); + } + } + + $(window).scroll(function () { if(typeof buildCmd == 'function') { $('#more').hide(); @@ -893,19 +910,3 @@ $(window).scroll(function () { }); - - - -}); - - function zFormError(elm,x) { - if(x) { - $(elm).addClass("zform-error"); - $(elm).removeClass("zform-ok"); - } - else { - $(elm).addClass("zform-ok"); - $(elm).removeClass("zform-error"); - } - } - -- cgit v1.2.3