]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Using timeline string instead of title for WindowName because IE doesn't
authorSarven Capadisli <csarven@status.net>
Wed, 23 Sep 2009 22:04:39 +0000 (22:04 +0000)
committerSarven Capadisli <csarven@status.net>
Wed, 23 Sep 2009 22:04:39 +0000 (22:04 +0000)
like names with whitespace.

plugins/Realtime/RealtimePlugin.php
plugins/Realtime/realtimeupdate.js

index 4fb8bf84e5e55adac63eaf352c45e40606014a18..7334f56572d0f65a792d65aa19cd39e3d1fa1a34 100644 (file)
@@ -83,8 +83,6 @@ class RealtimePlugin extends Plugin
             $url = $base . '?realtime=1';
         }
 
-        $title = $action->title();
-
         $scripts = $this->_getScripts();
 
         foreach ($scripts as $script) {
@@ -106,7 +104,7 @@ class RealtimePlugin extends Plugin
         else {
             // FIXME: This icon URL is no good if fancy URLs are off.
             $iconurl = $base.'plugins/Realtime/icon_external.gif';
-            $realtimeUI = ' RealtimeUpdate.addPopup("'.$url.'", "'.$title.'", "'. $iconurl .'");';
+            $realtimeUI = ' RealtimeUpdate.addPopup("'.$url.'", "'.$timeline.'", "'. $iconurl .'");';
         }
 
         $action->elementStart('script', array('type' => 'text/javascript'));
index 4fda5079d42684c51313b00834da38dbf928dfda..57fe0a843651ebf1d29b28a492623c297aa82a45 100644 (file)
@@ -111,7 +111,7 @@ RealtimeUpdate = {
           return dl;
      },
 
-     addPopup: function(url, title, iconurl)
+     addPopup: function(url, timeline, iconurl)
      {
          $('#site_nav_local_views .current a').append('<button id="realtime_timeline" title="Real-time pop window">&#8599;</button>');
  
@@ -130,7 +130,7 @@ RealtimeUpdate = {
  
          $('#realtime_timeline').click(function() {
              window.open(url,
-                         title,
+                         timeline,
                          'toolbar=no,resizable=yes,scrollbars=yes,status=yes');
  
              return false;