From: Sarven Capadisli Date: Sat, 28 Nov 2009 19:54:32 +0000 (+0100) Subject: Bind for UserFlag only if there is a form for it X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6d29f3f2de58e4552942718ddef7ce67dcb99c5b;p=quix0rs-gnu-social.git Bind for UserFlag only if there is a form for it --- diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php index 1c58a6916e..4717a63dd1 100644 --- a/plugins/UserFlag/UserFlagPlugin.php +++ b/plugins/UserFlag/UserFlagPlugin.php @@ -146,7 +146,7 @@ class UserFlagPlugin extends Plugin function onEndShowScripts($action) { $action->elementStart('script', array('type' => 'text/javascript')); - $action->raw('/**/'); + $action->raw('/* 0) { SN.U.FormXHR($(".form_entity_flag")); } /*]]>*/'); $action->elementEnd('script'); return true; }