@@ -11,20 +11,20 @@ angular.module('monitoring.controllers', [])
1111 "$scope" , "$window" , "$location" ,
1212 function ( $scope , $window , $location ) {
1313 var offset = getTimezoneOffset ( ) ,
14- queryParams = urlParams ( )
14+ queryParams = urlParams ( ) ;
1515
16- $scope . currentFormat = undefined
17- $scope . currentOffset = undefined
16+ $scope . currentFormat = undefined ;
17+ $scope . currentOffset = undefined ;
1818
1919 $scope . setUp = setUp ;
2020
2121 function setUp ( currentFormat ) {
2222 if ( currentFormat ) {
23- $scope . currentFormat = currentFormat
23+ $scope . currentFormat = currentFormat ;
2424 }
25- $scope . $watch ( 'currentFormat' , onFormatChange )
25+ $scope . $watch ( 'currentFormat' , onFormatChange ) ;
2626 if ( queryParams [ 'ts_mode' ] === 'bl' ) {
27- $scope . currentOffset = queryParams [ 'ts_offset' ]
27+ $scope . currentOffset = queryParams [ 'ts_offset' ] ;
2828 }
2929 }
3030
@@ -36,7 +36,7 @@ angular.module('monitoring.controllers', [])
3636
3737 // overwrite to new values
3838 queryParams [ 'ts_mode' ] = nval ;
39- if ( nval === 'utc' ) {
39+ if ( nval === 'utc' ) {
4040 queryParams [ 'ts_offset' ] = 0 ;
4141 } else {
4242 queryParams [ 'ts_offset' ] = offset ;
@@ -158,9 +158,9 @@ function MatchByController($q, $rootScope) {
158158 }
159159
160160 function saveDimKey ( ) {
161- var matchByTags = [ ]
161+ var matchByTags = [ ] ;
162162 for ( var i = 0 ; i < vm . matchByTags . length ; i ++ ) {
163- matchByTags . push ( vm . matchByTags [ i ] [ 'text' ] )
163+ matchByTags . push ( vm . matchByTags [ i ] [ 'text' ] ) ;
164164 }
165165 $ ( '#id_match_by' ) . val ( matchByTags . join ( ',' ) ) ;
166166 }
@@ -172,7 +172,7 @@ function MatchByController($q, $rootScope) {
172172
173173 return function destroyer ( ) {
174174 watcher ( ) ;
175- }
175+ } ;
176176
177177 function onMatchByChange ( event , matchBy ) {
178178 // remove from tags those match by that do not match
@@ -221,7 +221,7 @@ function NotificationField($rootScope) {
221221 }
222222 } ;
223223 vm . remove = function ( id ) {
224- for ( var i = 0 ; i < vm . list . length ; i += 1 ) {
224+ for ( var i = 0 ; i < vm . list . length ; i += 1 ) {
225225 if ( vm . list [ i ] . id === id ) {
226226 vm . list . splice ( i , 1 ) ;
227227 vm . select . options . push ( allOptions [ id ] ) ;
@@ -237,7 +237,7 @@ function NotificationField($rootScope) {
237237 $rootScope . $on ( 'mon_deterministic_changed' , onDeterministicChange ) ;
238238
239239 function prepareNotify ( item ) {
240- var selected = item [ 7 ]
240+ var selected = item [ 7 ] ;
241241 var notify = {
242242 id : item [ 0 ] ,
243243 label : item [ 1 ] + ' (' + item [ 2 ] + ')' ,
@@ -258,7 +258,7 @@ function NotificationField($rootScope) {
258258
259259 function removeFromSelect ( ) {
260260 var opts = vm . select . options ;
261- for ( var i = 0 ; i < opts . length ; i += 1 ) {
261+ for ( var i = 0 ; i < opts . length ; i += 1 ) {
262262 if ( opts [ i ] . id === vm . select . model ) {
263263 opts . splice ( i , 1 ) ;
264264 break ;
0 commit comments