@@ -115,7 +115,7 @@ $(function () {
115115 customPageNavReport . getPages ( )
116116 . then ( function ( pages ) {
117117 console . log ( 'pages: ' , pages ) ;
118- if ( pages . length > 0 ) {
118+ if ( pages . length > 0 ) {
119119 const firstPage = pages [ 0 ] ;
120120 firstPage . isActive = true ;
121121
@@ -161,7 +161,7 @@ $(function () {
161161
162162 customFilterPaneReport . on ( 'loaded' , function ( event ) {
163163 createAppliedFiltersPane ( null , customFilterPaneReport ) ;
164-
164+
165165 console . log ( 'custom filter pane report loaded' ) ;
166166 customFilterPaneReport . getPages ( )
167167 . then ( function ( pages ) {
@@ -224,7 +224,7 @@ $(function () {
224224 . each ( function ( index , element ) {
225225 var $element = $ ( element ) ;
226226 var buttonPage = $element . data ( 'page' ) ;
227- if ( buttonPage . isActive ) {
227+ if ( buttonPage . isActive ) {
228228 buttonPage . isActive = false ;
229229 $element . removeClass ( 'active' ) ;
230230 }
@@ -235,7 +235,7 @@ $(function () {
235235 . each ( function ( index , element ) {
236236 var $element = $ ( element ) ;
237237 var buttonPage = $element . data ( 'page' ) ;
238- if ( buttonPage . name === newPage . name ) {
238+ if ( buttonPage . name === newPage . name ) {
239239 buttonPage . isActive = true ;
240240 $element . addClass ( 'active' ) ;
241241 }
@@ -271,7 +271,7 @@ $(function () {
271271 . data ( 'page' , page )
272272 . text ( page . displayName ) ;
273273
274- if ( page . isActive ) {
274+ if ( page . isActive ) {
275275 $page . addClass ( 'active' ) ;
276276 }
277277
@@ -287,7 +287,7 @@ $(function () {
287287 var $nextButton = $ ( '#nextbutton' ) ;
288288 var $cycleButton = $ ( '#cyclebutton' ) ;
289289 var cycleIntervalId ;
290-
290+
291291 // When report button is clicked embed the report
292292 $reportsList . on ( 'click' , 'button' , function ( event ) {
293293 var button = event . target ;
@@ -300,11 +300,11 @@ $(function () {
300300 } )
301301 . then ( function ( reportWithToken ) {
302302 var reportConfig = $ . extend ( {
303- type : 'report' ,
304- settings : {
305- filterPaneEnabled : false ,
306- navContentPaneEnabled : false
307- }
303+ type : 'report' ,
304+ settings : {
305+ filterPaneEnabled : false ,
306+ navContentPaneEnabled : false
307+ }
308308 } , reportWithToken ) ;
309309
310310 powerbi . embed ( $dynamicReportContainer . get ( 0 ) , reportConfig ) ;
@@ -323,7 +323,7 @@ $(function () {
323323 $cycleButton . toggleClass ( 'active' ) ;
324324 $cycleButton . data ( 'cycle' , ! $cycleButton . data ( 'cycle' ) ) ;
325325
326- if ( $cycleButton . data ( 'cycle' ) ) {
326+ if ( $cycleButton . data ( 'cycle' ) ) {
327327 cycleIntervalId = setInterval ( function ( ) {
328328 console . log ( 'cycle page: ' ) ;
329329 changePage ( true ) ;
@@ -359,31 +359,31 @@ $(function () {
359359 . each ( function ( index , element ) {
360360 var $element = $ ( element ) ;
361361 var buttonPage = $element . data ( 'page' ) ;
362- if ( buttonPage . isActive ) {
362+ if ( buttonPage . isActive ) {
363363 $activeButtonIndex = index ;
364364 }
365365 } ) ;
366366
367- if ( forwards ) {
367+ if ( forwards ) {
368368 $activeButtonIndex += 1 ;
369369 }
370370 else {
371371 $activeButtonIndex -= 1 ;
372372 }
373373
374- if ( $activeButtonIndex > reportButtons . length - 1 ) {
374+ if ( $activeButtonIndex > reportButtons . length - 1 ) {
375375 $activeButtonIndex = 0 ;
376376 }
377- if ( $activeButtonIndex < 0 ) {
377+ if ( $activeButtonIndex < 0 ) {
378378 $activeButtonIndex = reportButtons . length - 1 ;
379379 }
380380
381381 reportButtons
382382 . each ( function ( index , element ) {
383- if ( $activeButtonIndex === index ) {
383+ if ( $activeButtonIndex === index ) {
384384 var $element = $ ( element ) ;
385385 var buttonPage = $element . data ( 'page' ) ;
386-
386+
387387 customPageNavReport . setPage ( buttonPage . name ) ;
388388 }
389389 } ) ;
@@ -407,41 +407,41 @@ $(function () {
407407 table : "Store" ,
408408 column : "Name"
409409 } , "And" , [
410- {
411- operator : "Contains" ,
412- value : "Direct"
413- }
414- ] ) ;
410+ {
411+ operator : "Contains" ,
412+ value : "Direct"
413+ }
414+ ] ) ;
415415
416416 var $predefinedFilter2 = $ ( '#predefinedFilter2' ) ;
417417 var predefinedFilter2 = new models . AdvancedFilter ( {
418418 table : "Store" ,
419419 column : "Name"
420420 } , "Or" , [
421- {
422- operator : "Contains" ,
423- value : "Wash"
424- } ,
425- {
426- operator : "Contains" ,
427- value : "Park"
428- }
429- ] ) ;
421+ {
422+ operator : "Contains" ,
423+ value : "Wash"
424+ } ,
425+ {
426+ operator : "Contains" ,
427+ value : "Park"
428+ }
429+ ] ) ;
430430
431431 var $predefinedFilter3 = $ ( '#predefinedFilter3' ) ;
432432 var predefinedFilter3 = new models . AdvancedFilter ( {
433433 table : "Store" ,
434434 column : "Name"
435435 } , "Or" , [
436- {
437- operator : "Contains" ,
438- value : "Wash"
439- } ,
440- {
441- operator : "Contains" ,
442- value : "Park"
443- }
444- ] ) ;
436+ {
437+ operator : "Contains" ,
438+ value : "Wash"
439+ } ,
440+ {
441+ operator : "Contains" ,
442+ value : "Park"
443+ }
444+ ] ) ;
445445
446446 $customFilterForm . on ( 'submit' , function ( event ) {
447447 event . preventDefault ( ) ;
@@ -485,14 +485,14 @@ $(function () {
485485 $operatorTypeFields . on ( 'change' , function ( event ) {
486486 var checkedType = $ ( '#customfilterform input[name=operatorType]:checked' ) . val ( ) ;
487487 console . log ( 'operator change' , checkedType ) ;
488-
488+
489489 updateFieldsForOperator ( checkedType . toLowerCase ( ) ) ;
490490 } ) ;
491491
492492 $targetTypeFields . on ( 'change' , function ( event ) {
493493 var checkedTarget = $ ( '#customfilterform input[name=filterTarget]:checked' ) . val ( ) ;
494494 console . log ( 'target change' , checkedTarget ) ;
495-
495+
496496 updateTargetFields ( checkedTarget . toLowerCase ( ) ) ;
497497 } ) ;
498498
@@ -526,14 +526,14 @@ $(function () {
526526 var filterTypeTarget = { } ;
527527 filterTypeTarget . table = $ ( '#filtertable' ) . val ( ) ;
528528
529- if ( filterType === "column" ) {
529+ if ( filterType === "column" ) {
530530 filterTypeTarget . column = $ ( '#filtercolumn' ) . val ( ) ;
531531 }
532- else if ( filterType === "hierarchy" ) {
532+ else if ( filterType === "hierarchy" ) {
533533 filterTypeTarget . hierarchy = $ ( '#filterhierarchy' ) . val ( ) ;
534534 filterTypeTarget . hierarchyLevel = $ ( '#filterhierarchylevel' ) . val ( ) ;
535535 }
536- else if ( filterType === "measure" ) {
536+ else if ( filterType === "measure" ) {
537537 filterTypeTarget . measure = $ ( '#filtermeasure' ) . val ( ) ;
538538 }
539539
@@ -571,7 +571,7 @@ $(function () {
571571 var target = {
572572 type : checkedTarget
573573 } ;
574-
574+
575575 if ( checkedTarget === "page" ) {
576576 target . name = $ ( '#filtertargetpage' ) . val ( ) ;
577577 }
@@ -611,7 +611,7 @@ $(function () {
611611 . data ( 'filter' , filter )
612612 . html ( '×' )
613613 ;
614-
614+
615615 var $filterText = $ ( '<div>' )
616616 . addClass ( 'filter__text' )
617617 . text ( JSON . stringify ( filter , null , ' ' ) )
@@ -718,7 +718,7 @@ $(function () {
718718 filters . some ( function ( filter , i ) {
719719 if ( JSON . stringify ( filter ) === JSON . stringify ( filterToRemove ) ) {
720720 index = i ;
721- return true ;
721+ return true ;
722722 }
723723 } ) ;
724724
0 commit comments