Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Live/templates/index.tpl')
-rw-r--r--plugins/Live/templates/index.tpl56
1 files changed, 29 insertions, 27 deletions
diff --git a/plugins/Live/templates/index.tpl b/plugins/Live/templates/index.tpl
index d839c6bf33..13e8eb8d92 100644
--- a/plugins/Live/templates/index.tpl
+++ b/plugins/Live/templates/index.tpl
@@ -1,29 +1,29 @@
{literal}
<script type="text/javascript" charset="utf-8">
-$(document).ready(function() {
- $('#visitsLive').liveWidget({
- interval: {/literal}{$liveRefreshAfterMs}{literal},
- onUpdate: function(){
- //updates the numbers of total visits in startbox
- var ajaxRequest = new ajaxHelper();
- ajaxRequest.setFormat('html');
- ajaxRequest.addParams({
+ $(document).ready(function () {
+ $('#visitsLive').liveWidget({
+ interval: {/literal}{$liveRefreshAfterMs}{literal},
+ onUpdate: function () {
+ //updates the numbers of total visits in startbox
+ var ajaxRequest = new ajaxHelper();
+ ajaxRequest.setFormat('html');
+ ajaxRequest.addParams({
+ module: 'Live',
+ action: 'ajaxTotalVisitors'
+ }, 'GET');
+ ajaxRequest.setCallback(function (r) {
+ $("#visitsTotal").html(r);
+ });
+ ajaxRequest.send(false);
+ },
+ maxRows: 10,
+ fadeInSpeed: 600,
+ dataUrlParams: {
module: 'Live',
- action: 'ajaxTotalVisitors'
- }, 'GET');
- ajaxRequest.setCallback(function (r) {
- $("#visitsTotal").html(r);
- });
- ajaxRequest.send(false);
- },
- maxRows: 10,
- fadeInSpeed: 600,
- dataUrlParams: {
- module: 'Live',
- action: 'getLastVisitsStart'
- }
+ action: 'getLastVisitsStart'
+ }
+ });
});
-});
</script>
{/literal}
@@ -32,9 +32,11 @@ $(document).ready(function() {
{$visitors}
<div class="visitsLiveFooter">
- <a title="Pause Live!" href="javascript:void(0);" onclick="onClickPause();"><img id="pauseImage" border="0" src="plugins/Live/templates/images/pause_disabled.gif" /></a>
- <a title="Start Live!" href="javascript:void(0);" onclick="onClickPlay();"><img id="playImage" border="0" src="plugins/Live/templates/images/play.gif" /></a>
- {if !$disableLink}
- &nbsp; <a class="rightLink" href="javascript:broadcast.propagateAjax('module=Live&action=getVisitorLog')">{'Live_LinkVisitorLog'|translate}</a>
- {/if}
+ <a title="Pause Live!" href="javascript:void(0);" onclick="onClickPause();"><img id="pauseImage" border="0"
+ src="plugins/Live/templates/images/pause_disabled.gif"/></a>
+ <a title="Start Live!" href="javascript:void(0);" onclick="onClickPlay();"><img id="playImage" border="0" src="plugins/Live/templates/images/play.gif"/></a>
+ {if !$disableLink}
+ &nbsp;
+ <a class="rightLink" href="javascript:broadcast.propagateAjax('module=Live&action=getVisitorLog')">{'Live_LinkVisitorLog'|translate}</a>
+ {/if}
</div>