summaryrefslogtreecommitdiff
path: root/www/templates/events-graphs.html
diff options
context:
space:
mode:
authorARC <arjunrc@gmail.com>2015-04-25 10:25:29 -0400
committerARC <arjunrc@gmail.com>2015-04-25 10:25:29 -0400
commit30bbcb709ee2caa3fe5edd7ef1169b67b9b132ed (patch)
tree4e1f903505ee52519f3b0e7087588a061a5d8b98 /www/templates/events-graphs.html
parent0eae51a295567ca1969313c76d6aa27590c2d27c (diff)
Separated out the charting job into a function and linked chart generation to tab-on-select
Diffstat (limited to 'www/templates/events-graphs.html')
-rw-r--r--www/templates/events-graphs.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/templates/events-graphs.html b/www/templates/events-graphs.html
index 96144d4b..97533ab1 100644
--- a/www/templates/events-graphs.html
+++ b/www/templates/events-graphs.html
@@ -4,7 +4,7 @@
<button class="button button-icon button-clear ion-navicon" ng-click="openMenu()"></button>
</ion-nav-buttons>
<ion-tabs class="tabs-icon-top tabs-stable">
- <ion-tab title="Events" icon="ion-stats-bars">
+ <ion-tab title="Events" icon="ion-stats-bars" on-select="generateChart('All Events')">
<ion-nav-view>
<ion-content class="has-header">
@@ -15,12 +15,12 @@
</ion-nav-view>
</ion-tab>
- <ion-tab title="About" icon="ion-gear-a" on-select="anotherChart()">
+ <ion-tab title="About" icon="ion-gear-a" on-select="generateChart('Events in the last hour')">
<ion-nav-view>
<ion-content>
<span></span>
- <div google-chart chart="chart2Object"></div>
+ <div google-chart chart="chartObject"></div>
This is 2-2
</ion-content>