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';
|
$url = $base . '?realtime=1';
|
||||||
}
|
}
|
||||||
|
|
||||||
$title = $action->title();
|
|
||||||
|
|
||||||
$scripts = $this->_getScripts();
|
$scripts = $this->_getScripts();
|
||||||
|
|
||||||
foreach ($scripts as $script) {
|
foreach ($scripts as $script) {
|
||||||
|
@ -106,7 +104,7 @@ class RealtimePlugin extends Plugin
|
||||||
else {
|
else {
|
||||||
// FIXME: This icon URL is no good if fancy URLs are off.
|
// FIXME: This icon URL is no good if fancy URLs are off.
|
||||||
$iconurl = $base.'plugins/Realtime/icon_external.gif';
|
$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'));
|
$action->elementStart('script', array('type' => 'text/javascript'));
|
||||||
|
|
|
@ -111,7 +111,7 @@ RealtimeUpdate = {
|
||||||
return dl;
|
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>');
|
$('#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() {
|
$('#realtime_timeline').click(function() {
|
||||||
window.open(url,
|
window.open(url,
|
||||||
title,
|
timeline,
|
||||||
'toolbar=no,resizable=yes,scrollbars=yes,status=yes');
|
'toolbar=no,resizable=yes,scrollbars=yes,status=yes');
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user