File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 174174 }
175175 $scope . chart_data = [ views , visits , visitors , users ] ;
176176
177- $scope . chart . update ( ) ;
178177 $scope . dashboard_loading = false ;
179178 } ,
180179 function ( response ) {
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
Original file line number Diff line number Diff line change 11dnnWebAnalytics . 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+ } ) ;
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments