From 6d29f3f2de58e4552942718ddef7ce67dcb99c5b Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Sat, 28 Nov 2009 20:54:32 +0100 Subject: [PATCH] Bind for UserFlag only if there is a form for it --- plugins/UserFlag/UserFlagPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5