diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-12-04 19:41:51 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-12-04 19:41:51 -0500 |
commit | 4c8bed8ba0558c5834621331f253e05029fa4e43 (patch) | |
tree | 796607aa0a8b6a7ce4ef73090a8b255a6b2bacdd /plugins/UserFlag | |
parent | aab7344002fd390e5b62a3eb82f3a418fd294617 (diff) |
Use inlineScript() everywhere inline scripts are written
Diffstat (limited to 'plugins/UserFlag')
-rw-r--r-- | plugins/UserFlag/UserFlagPlugin.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php index e13c2555a..75dcca4fc 100644 --- a/plugins/UserFlag/UserFlagPlugin.php +++ b/plugins/UserFlag/UserFlagPlugin.php @@ -145,9 +145,7 @@ class UserFlagPlugin extends Plugin function onEndShowScripts($action) { - $action->elementStart('script', array('type' => 'text/javascript')); - $action->raw('/*<![CDATA[*/ if ($(".form_entity_flag").length > 0) { SN.U.FormXHR($(".form_entity_flag")); } /*]]>*/'); - $action->elementEnd('script'); + $action->inlineScript('if ($(".form_entity_flag").length > 0) { SN.U.FormXHR($(".form_entity_flag")); }'); return true; } } |