git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit d86155ad authored by Sarven Capadisli's avatar Sarven Capadisli

Using timeline string instead of title for WindowName because IE doesn't

like names with whitespace.
parent 1f12993a
......@@ -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'));
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment