aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-20 22:27:33 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-20 22:27:33 -0700
commita428695f8e9e3441bd3012a74a8385a713034007 (patch)
treecb3e9b1dbed5ab0a6e03c2cd9fe8fa006b6f3462 /mod/profile.php
parentb9247f1dcccd18bcfa402852f5ab7878cef8d105 (diff)
downloadvolse-hubzilla-a428695f8e9e3441bd3012a74a8385a713034007.tar.gz
volse-hubzilla-a428695f8e9e3441bd3012a74a8385a713034007.tar.bz2
volse-hubzilla-a428695f8e9e3441bd3012a74a8385a713034007.zip
pass vars via javascript, not html. Also fix broken pause img on IE
Diffstat (limited to 'mod/profile.php')
-rw-r--r--mod/profile.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/profile.php b/mod/profile.php
index 4adcd29f6..b155acf80 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -163,8 +163,11 @@ function profile_content(&$a, $update = 0) {
// This is ugly, but we can't pass the profile_uid through the session to the ajax updater,
// because browser prefetching might change it on us. We have to deliver it with the page.
- if($tab == 'posts' && (! $a->pager['start']))
- $o .= '<div id="live-profile" profile="' . $a->profile['profile_uid'] . '"></div>' . "\r\n";
+ if($tab == 'posts' && (! $a->pager['start'])) {
+ $o .= '<div id="live-profile"></div>' . "\r\n";
+ $o .= "<script> var profile_uid = " . $a->profile['profile_uid'] . "; </script>\r\n";
+ }
+
}
// TODO alter registration and settings and profile to update contact table when names and photos change.