$url = $base . '?realtime=1';
}
- $title = $action->title();
-
$scripts = $this->_getScripts();
foreach ($scripts as $script) {
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'));
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>');
$('#realtime_timeline').click(function() {
window.open(url,
- title,
+ timeline,
'toolbar=no,resizable=yes,scrollbars=yes,status=yes');
return false;