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

like names with whitespace.
This commit is contained in:
Sarven Capadisli 2009-09-23 22:04:39 +00:00
parent 1f12993a4d
commit d86155ad94
2 changed files with 3 additions and 5 deletions

View 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'));

View 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;