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:
authorgka <gka@vis4.net>2010-08-19 20:43:12 +0400
committergka <gka@vis4.net>2010-08-19 20:43:12 +0400
commite7d104340ebda8231fdfc109ccea3ec4d178a466 (patch)
treef580488748f40605b581d918333a417be0d83182 /plugins/ExamplePlugin/templates
parent514a5903aff503e01b4370b08ac96a298e666e2b (diff)
faster ajax query.
git-svn-id: http://dev.piwik.org/svn/trunk@2963 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/ExamplePlugin/templates')
-rw-r--r--plugins/ExamplePlugin/templates/piwikDownloads.tpl34
1 files changed, 16 insertions, 18 deletions
diff --git a/plugins/ExamplePlugin/templates/piwikDownloads.tpl b/plugins/ExamplePlugin/templates/piwikDownloads.tpl
index 7f29cd4b6d..7a5729f884 100644
--- a/plugins/ExamplePlugin/templates/piwikDownloads.tpl
+++ b/plugins/ExamplePlugin/templates/piwikDownloads.tpl
@@ -1,22 +1,20 @@
+<div style="padding:1.5em;text-align:center">
+ {"ExamplePlugin_piwikDownloadsMsg"|translate|replace:'%s':'<b class="piwikDownloadCount_cnt" >...</b>'}
+</div>
+{*
+ * loading piwik download stats from demo.piwik.org
+ *}
<script type="text/javascript">
-
{literal}
- $(document).ready(function() {
- $.ajax({
- url: "http://demo.piwik.org/?module=API&method=Goals.getConversions"
- +"&idSite=1&idGoal=1&period="+piwik.period+"&date="+piwik.currentDateString
- +"&token_auth=anonymous&format=json",
- dataType: 'jsonp',
- jsonp: 'jsoncallback',
- success: function(data) {
- $('.piwikDownloadCount_cnt').html(data.value);
- }
- });
-
+ $.ajax({
+ url: "http://demo.piwik.org/?module=API&method=Goals.getConversions"
+ +"&idSite=1&idGoal=1&period="+piwik.period+"&date="+piwik.currentDateString
+ +"&token_auth=anonymous&format=json",
+ dataType: 'jsonp',
+ jsonp: 'jsoncallback',
+ success: function(data) {
+ $('.piwikDownloadCount_cnt').html(data.value);
+ }
});
{/literal}
-
-</script>
-<div style="padding:1.5em;text-align:center">
- {"ExamplePlugin_piwikDownloadsMsg"|translate|replace:'%s':'<b class="piwikDownloadCount_cnt" >...</b>'}
-</div> \ No newline at end of file
+</script> \ No newline at end of file