Using timeline string instead of title for WindowName because IE doesn't
like names with whitespace.
This commit is contained in:
parent
1f12993a4d
commit
d86155ad94
|
@ -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">↗</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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user