Skip to content

Commit 36e2f9e

Browse files
author
Jay Mathis
committed
fix issue #21
1 parent 0ca6bcd commit 36e2f9e

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

app/controllers/view.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@
174174
}
175175
$scope.chart_data = [views, visits, visitors, users];
176176

177-
$scope.chart.update();
178177
$scope.dashboard_loading = false;
179178
},
180179
function (response) {
@@ -232,17 +231,12 @@
232231
$scope.chart.update();
233232
}
234233
});
235-
236-
$scope.$on('chart-create', function (evt, chart) {
237-
$scope.chart = chart;
238-
});
239-
234+
240235
init = function () {
241236
var promises = [];
242237
return $q.all(promises);
243238
};
244239
init();
245240
$scope.lastWeek();
246-
$scope.getReport();
247241
}]);
248242

app/directives/view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dnnWebAnalytics.directive('view', function () {
22
return {
3-
templateUrl: '/DesktopModules/Dnn.WebAnalytics/app/views/view.html',
3+
templateUrl: '/DesktopModules/Dnn.WebAnalytics/app/views/view.html?v=' + Date.now(),
44
controller: 'viewController'
55
};
6-
});
6+
});

app/views/view.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h3>Visit Breakdown</h3>
5454
<div class="col">
5555
<div class="form-group">
5656
<label for="report_type" class="control-label">By Field</label>
57-
<select class="form-control" ng-model="field" ng-change="reportChanged()">
57+
<select class="form-control" ng-model="field" ng-change="getReport()">
5858
<option value="date">Dates</option>
5959
<option value="weekday">Week Days</option>
6060
<option value="month">Month</option>
@@ -81,7 +81,7 @@ <h3>Visit Breakdown</h3>
8181
<div class="col">
8282
<div class="form-group">
8383
<label for="row" class="control-label">Number of Results</label>
84-
<select class="form-control" ng-model="rows" ng-change="reportChanged()">
84+
<select class="form-control" ng-model="rows" ng-change="getReport()">
8585
<option value="10">Top 10</option>
8686
<option value="25">Top 25</option>
8787
<option value="50">Top 50</option>

0 commit comments

Comments
 (0)