get rid of undefined $ error by mangling theme specific JS include order

This commit is contained in:
friendica
2012-12-13 04:47:06 -08:00
parent 4e192b108d
commit c360565d0a
4 changed files with 22 additions and 19 deletions

View File

@@ -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");
}
}