summaryrefslogtreecommitdiff
path: root/plugins/UserFlag/UserFlagPlugin.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-11 13:43:21 +0000
committerSarven Capadisli <csarven@status.net>2009-11-11 13:43:21 +0000
commit686c2e5e064573a70e38e8df6d5fb60061858599 (patch)
tree0bb53a4abec500f1ca015c88949a4dee0d35cd27 /plugins/UserFlag/UserFlagPlugin.php
parentdbe02049a829dd0f3200984f1c797907aac5423f (diff)
Added XHR for form_entity_flag
Diffstat (limited to 'plugins/UserFlag/UserFlagPlugin.php')
-rw-r--r--plugins/UserFlag/UserFlagPlugin.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php
index fe4a74869..6410ee1ce 100644
--- a/plugins/UserFlag/UserFlagPlugin.php
+++ b/plugins/UserFlag/UserFlagPlugin.php
@@ -140,4 +140,12 @@ class UserFlagPlugin extends Plugin
return true;
}
+
+ function onEndShowScripts($action)
+ {
+ $action->elementStart('script', array('type' => 'text/javascript'));
+ $action->raw('/*<![CDATA[*/ SN.U.FormXHR($(".form_entity_flag")); /*]]>*/');
+ $action->elementEnd('script');
+ return true;
+ }
}