1
1
progress ( 0 ) ;
2
2
eqLogic_id = null ;
3
3
4
- $ ( '.bt_Freebox_Next ' ) . off ( 'click' ) . on ( 'click' , function ( ) {
4
+ $ ( '.bt_FreeboxOS_Next ' ) . off ( 'click' ) . on ( 'click' , function ( ) {
5
5
funNext ( ) ;
6
6
} ) ;
7
7
8
- $ ( '.bt_Freebox_Previous ' ) . off ( 'click' ) . on ( 'click' , function ( ) {
8
+ $ ( '.bt_FreeboxOS_Previous ' ) . off ( 'click' ) . on ( 'click' , function ( ) {
9
9
funPrev ( ) ;
10
10
} ) ;
11
11
@@ -27,7 +27,7 @@ $('.bt_eqlogic_control_parental').on('click', function () {
27
27
progress ( 95 ) ;
28
28
} ) ;
29
29
30
- $ ( '.bt_Freebox_Save ' ) . on ( 'click' , function ( ) {
30
+ $ ( '.bt_FreeboxOS_Save ' ) . on ( 'click' , function ( ) {
31
31
logs ( 'info' , "──────────▶︎ :fg-warning:{{Sauvegarde des Paramètres}}:/fg: ◀︎───────────" ) ;
32
32
ip = $ ( '#input_freeboxIP' ) . val ( ) ;
33
33
//VersionAPP = $('#input_freeAppVersion').val();
@@ -40,33 +40,33 @@ $('.bt_Freebox_Autorisation').on('click', function () {
40
40
logs ( 'info' , "──────────▶︎ :fg-warning:{{Lancement}}:/fg: {{Autorisation Freebox}} ◀︎───────────" ) ;
41
41
autorisationFreebox ( ) ;
42
42
} ) ;
43
- $ ( '.bt_Freebox_resetAPI ' ) . on ( 'click' , function ( ) {
43
+ $ ( '.bt_FreeboxOS_resetAPI ' ) . on ( 'click' , function ( ) {
44
44
logs ( 'info' , "──────────▶︎ :fg-warning:{{Lancement}}:/fg: {{Reset de la version API}} ◀︎───────────" ) ;
45
45
ResetAPI ( ) ;
46
46
} ) ;
47
47
48
- $ ( '.bt_Freebox_droitVerif ' ) . on ( 'click' , function ( ) {
48
+ $ ( '.bt_FreeboxOS_droitVerif ' ) . on ( 'click' , function ( ) {
49
49
logs ( 'info' , "──────────▶︎ :fg-warning:{{Lancement}}:/fg: {{vérification des droits}} ◀︎───────────" ) ;
50
50
GetSessionData ( ) ;
51
51
} ) ;
52
- $ ( '.bt_Freebox_droitVerif_pass ' ) . on ( 'click' , function ( ) {
52
+ $ ( '.bt_FreeboxOS_droitVerif_pass ' ) . on ( 'click' , function ( ) {
53
53
logs ( 'info' , "──────────▶︎ :fg-warning:{{Ignorer la vérification des droits}}:/fg: ◀︎───────────" ) ;
54
54
funNext ( ) ;
55
55
} ) ;
56
56
57
- $ ( '.bt_Freebox_ResetConfig ' ) . on ( 'click' , function ( ) {
57
+ $ ( '.bt_FreeboxOS_ResetConfig ' ) . on ( 'click' , function ( ) {
58
58
logs ( 'info' , "──────────▶︎ :fg-warning:{{Reset de la configuration}}:/fg: ◀︎───────────" ) ;
59
59
SetDefaultSetting ( ) ;
60
60
GetSetting ( ) ;
61
- $ ( '.bt_Freebox_Next ' ) . show ( ) ;
61
+ $ ( '.bt_FreeboxOS_Next ' ) . show ( ) ;
62
62
} ) ;
63
63
64
- $ ( '.bt_Freebox_Room ' ) . on ( 'click' , function ( ) {
64
+ $ ( '.bt_FreeboxOS_Room ' ) . on ( 'click' , function ( ) {
65
65
logs ( 'info' , "──────────▶︎ :fg-warning:{{Lancement}}:/fg: {{Recherche des pièces}} ◀︎───────────" ) ;
66
66
//SearchTile_room();
67
67
} ) ;
68
68
69
- $ ( '.bt_Freebox_Save_room ' ) . on ( 'click' , function ( ) {
69
+ $ ( '.bt_FreeboxOS_Save_room ' ) . on ( 'click' , function ( ) {
70
70
checkvalue = $ ( '.checkbox_freeboxTiles:checked' ) . val ( ) ;
71
71
if ( checkvalue == null ) {
72
72
logs ( 'info' , "───▶︎ :fg-info:Cron Global Titles ::/fg: NOK" ) ;
@@ -82,10 +82,10 @@ $('.bt_Freebox_Save_room').on('click', function () {
82
82
83
83
84
84
function updateMenu ( objectclass ) {
85
- $ ( '.li_Freebox_Summary .active' ) . removeClass ( 'active' ) ;
85
+ $ ( '.li_FreeboxOS_Summary .active' ) . removeClass ( 'active' ) ;
86
86
$ ( objectclass ) . addClass ( 'active' ) ;
87
- $ ( '.Freebox_Display ' ) . hide ( ) ;
88
- $ ( '.Freebox_Display .' + $ ( objectclass ) . attr ( 'data-href' ) ) . show ( ) ;
87
+ $ ( '.FreeboxOS_Display ' ) . hide ( ) ;
88
+ $ ( '.FreeboxOS_Display .' + $ ( objectclass ) . attr ( 'data-href' ) ) . show ( ) ;
89
89
}
90
90
91
91
function autorisationFreebox ( ) {
@@ -233,13 +233,13 @@ function sendToBdd(jsonParser) {
233
233
}
234
234
235
235
function AskTrackAuthorization ( ) {
236
- if ( $ ( '.li_Freebox_Summary .active' ) . attr ( 'data-href' ) == "authentification" ) {
236
+ if ( $ ( '.li_FreeboxOS_Summary .active' ) . attr ( 'data-href' ) == "authentification" ) {
237
237
238
238
$ ( '.textFreebox' ) . hide ( ) ;
239
- $ ( '.bt_Freebox_Next ' ) . hide ( ) ;
240
- $ ( '.bt_Freebox_Previous ' ) . hide ( ) ;
241
- $ ( '.Freebox_OK ' ) . hide ( ) ;
242
- $ ( '.Freebox_OK_NEXT ' ) . hide ( ) ;
239
+ $ ( '.bt_FreeboxOS_Next ' ) . hide ( ) ;
240
+ $ ( '.bt_FreeboxOS_Previous ' ) . hide ( ) ;
241
+ $ ( '.FreeboxOS_OK ' ) . hide ( ) ;
242
+ $ ( '.FreeboxOS_OK_NEXT ' ) . hide ( ) ;
243
243
244
244
$ . ajax ( {
245
245
type : "POST" ,
@@ -260,8 +260,8 @@ function AskTrackAuthorization() {
260
260
logs ( 'error' , + data . result . msg ) ;
261
261
} else {
262
262
$ ( '.textFreebox' ) . show ( ) ;
263
- $ ( '.bt_Freebox_Next ' ) . show ( ) ;
264
- $ ( '.bt_Freebox_Previous ' ) . show ( ) ;
263
+ $ ( '.bt_FreeboxOS_Next ' ) . show ( ) ;
264
+ $ ( '.bt_FreeboxOS_Previous ' ) . show ( ) ;
265
265
switch ( data . result . result . status ) {
266
266
case "unknown" :
267
267
$ ( '.textFreebox' ) . text ( '{{L\'application a un token invalide ou a été révoqué, il faut relancer l\'authentification. Merci}}' ) ;
@@ -282,9 +282,9 @@ function AskTrackAuthorization() {
282
282
case "granted" :
283
283
$ ( '.textFreebox' ) . text ( '{{Félicitation votre Freebox est maintenant reliée à Jeedom.}}' ) ;
284
284
logs ( 'info' , '(' + data . result . result . status + ') ' + "{{Félicitation votre Freebox est maintenant reliée à Jeedom}}" ) ;
285
- $ ( '.Freebox_OK ' ) . show ( ) ;
286
- $ ( '.Freebox_OK_NEXT ' ) . show ( ) ;
287
- $ ( '.Freebox_Display .' + $ ( this ) . attr ( 'rights' ) ) . show ( ) ;
285
+ $ ( '.FreeboxOS_OK ' ) . show ( ) ;
286
+ $ ( '.FreeboxOS_OK_NEXT ' ) . show ( ) ;
287
+ $ ( '.FreeboxOS_Display .' + $ ( this ) . attr ( 'rights' ) ) . show ( ) ;
288
288
progress ( 45 ) ;
289
289
break ;
290
290
case "denied" :
@@ -304,17 +304,17 @@ function AskTrackAuthorization() {
304
304
} ) ;
305
305
} else {
306
306
$ ( '.textFreebox' ) . show ( ) ;
307
- $ ( '.bt_Freebox_Next ' ) . show ( ) ;
308
- $ ( '.bt_Freebox_Previous ' ) . show ( ) ;
309
- $ ( '.Freebox_OK ' ) . show ( ) ;
310
- $ ( '.Freebox_OK_NEXT ' ) . show ( ) ;
307
+ $ ( '.bt_FreeboxOS_Next ' ) . show ( ) ;
308
+ $ ( '.bt_FreeboxOS_Previous ' ) . show ( ) ;
309
+ $ ( '.FreeboxOS_OK ' ) . show ( ) ;
310
+ $ ( '.FreeboxOS_OK_NEXT ' ) . show ( ) ;
311
311
}
312
312
}
313
313
314
314
function Good ( ) {
315
- $ ( '.bt_Freebox_Previous ' ) . hide ( ) ;
315
+ $ ( '.bt_FreeboxOS_Previous ' ) . hide ( ) ;
316
316
$ ( '.bt_Freebox_NEXT' ) . hide ( ) ;
317
- $ ( '.alert-info Freebox_OK ' ) . text ( '{{Authentification réussi}}' ) ;
317
+ $ ( '.alert-info FreeboxOS_OK ' ) . text ( '{{Authentification réussi}}' ) ;
318
318
logs ( 'info' , "Authentification réussi" ) ;
319
319
}
320
320
@@ -372,7 +372,7 @@ function GetSetting() {
372
372
console . log ( 'Objet par défaut : ' + data . result . Categorie )
373
373
console . log ( 'Version API : ' + data . result . API )
374
374
if ( data . result . DeviceName == null || data . result . DeviceName == "" ) {
375
- $ ( '.bt_Freebox_Next ' ) . hide ( ) ;
375
+ $ ( '.bt_FreeboxOS_Next ' ) . hide ( ) ;
376
376
$ ( '.textFreebox' ) . text ( '{{Votre Jeedom n\'a pas de Nom, il est impossible de continuer l\'appairage}}' ) ;
377
377
logs ( 'error' , "ERREUR : " + "{{Votre Jeedom n\'a pas de Nom, il est impossible de continuer l\'appairage}}" ) ;
378
378
$ ( '#div_alert' ) . showAlert ( {
@@ -381,7 +381,7 @@ function GetSetting() {
381
381
} ) ;
382
382
} else {
383
383
$ ( '.textFreebox' ) . text ( '' ) ;
384
- $ ( '.Freebox_OK_NEXT ' ) . show ( ) ;
384
+ $ ( '.FreeboxOS_OK_NEXT ' ) . show ( ) ;
385
385
}
386
386
if ( data . result . LogLevel == 100 ) {
387
387
var debugHides = document . getElementsByClassName ( 'debugFreeOS' ) ;
@@ -474,7 +474,7 @@ function SetSettingTiles(CronTiles) {
474
474
} ,
475
475
success : function ( data ) {
476
476
GetSetting ( ) ;
477
- $ ( '.Freebox_OK_NEXT ' ) . show ( ) ;
477
+ $ ( '.FreeboxOS_OK_NEXT ' ) . show ( ) ;
478
478
}
479
479
} ) ;
480
480
}
@@ -499,11 +499,11 @@ function SetDefaultSetting() {
499
499
function GetSessionData ( ) {
500
500
501
501
$ ( '.textFreebox' ) . hide ( ) ;
502
- $ ( '.bt_Freebox_Next ' ) . hide ( ) ;
503
- $ ( '.bt_Freebox_Previous ' ) . hide ( ) ;
504
- $ ( '.Freebox_OK ' ) . hide ( ) ;
505
- $ ( '.Freebox_OK_NEXT ' ) . hide ( ) ;
506
- $ ( '.bt_Freebox_droitVerif ' ) . show ( ) ;
502
+ $ ( '.bt_FreeboxOS_Next ' ) . hide ( ) ;
503
+ $ ( '.bt_FreeboxOS_Previous ' ) . hide ( ) ;
504
+ $ ( '.FreeboxOS_OK ' ) . hide ( ) ;
505
+ $ ( '.FreeboxOS_OK_NEXT ' ) . hide ( ) ;
506
+ $ ( '.bt_FreeboxOS_droitVerif ' ) . show ( ) ;
507
507
$ ( '.bt_Freebox' ) . show ( ) ;
508
508
509
509
$ . ajax ( {
@@ -545,11 +545,11 @@ function GetSessionData() {
545
545
permissions . settings ) {
546
546
logs ( 'info' , "───▶︎ :fg-info:{{Les droits sont}}:/fg: OK" ) ;
547
547
$ ( '.textFreebox' ) . show ( ) ;
548
- $ ( '.bt_Freebox_Next ' ) . show ( ) ;
549
- $ ( '.bt_Freebox_Previous ' ) . show ( ) ;
550
- $ ( '.Freebox_OK ' ) . show ( ) ;
551
- $ ( '.Freebox_OK_NEXT ' ) . show ( ) ;
552
- $ ( '.bt_Freebox_droitVerif ' ) . hide ( ) ;
548
+ $ ( '.bt_FreeboxOS_Next ' ) . show ( ) ;
549
+ $ ( '.bt_FreeboxOS_Previous ' ) . show ( ) ;
550
+ $ ( '.FreeboxOS_OK ' ) . show ( ) ;
551
+ $ ( '.FreeboxOS_OK_NEXT ' ) . show ( ) ;
552
+ $ ( '.bt_FreeboxOS_droitVerif ' ) . hide ( ) ;
553
553
$ ( '.bt_Freebox' ) . hide ( ) ;
554
554
555
555
progress ( 65 ) ;
@@ -621,14 +621,14 @@ function SaveTitelRoom() {
621
621
}
622
622
623
623
function funNext ( ) {
624
- updateMenu ( $ ( '.li_Freebox_Summary .active' ) . next ( ) ) ;
624
+ updateMenu ( $ ( '.li_FreeboxOS_Summary .active' ) . next ( ) ) ;
625
625
626
- $ ( '.bt_Freebox_Next ' ) . show ( ) ;
627
- $ ( '.bt_Freebox_Previous ' ) . show ( ) ;
626
+ $ ( '.bt_FreeboxOS_Next ' ) . show ( ) ;
627
+ $ ( '.bt_FreeboxOS_Previous ' ) . show ( ) ;
628
628
629
- logs ( 'info' , "──────────▶︎ :fg-warning:{{Étape}} ::/fg: " + $ ( '.li_Freebox_Summary .active' ) . attr ( 'data-href' ) ) ;
629
+ logs ( 'info' , "──────────▶︎ :fg-warning:{{Étape}} ::/fg: " + $ ( '.li_FreeboxOS_Summary .active' ) . attr ( 'data-href' ) ) ;
630
630
631
- switch ( $ ( '.li_Freebox_Summary .active' ) . attr ( 'data-href' ) ) {
631
+ switch ( $ ( '.li_FreeboxOS_Summary .active' ) . attr ( 'data-href' ) ) {
632
632
case 'home' :
633
633
progress ( 0 ) ;
634
634
break ;
@@ -658,12 +658,12 @@ function funNext() {
658
658
}
659
659
660
660
function funPrev ( ) {
661
- updateMenu ( $ ( '.li_Freebox_Summary .active' ) . prev ( ) ) ;
661
+ updateMenu ( $ ( '.li_FreeboxOS_Summary .active' ) . prev ( ) ) ;
662
662
663
- $ ( '.bt_Freebox_Next ' ) . show ( ) ;
664
- $ ( '.bt_Freebox_Previous ' ) . show ( ) ;
663
+ $ ( '.bt_FreeboxOS_Next ' ) . show ( ) ;
664
+ $ ( '.bt_FreeboxOS_Previous ' ) . show ( ) ;
665
665
666
- switch ( $ ( '.li_Freebox_Summary .active' ) . attr ( 'data-href' ) ) {
666
+ switch ( $ ( '.li_FreeboxOS_Summary .active' ) . attr ( 'data-href' ) ) {
667
667
case 'home' :
668
668
progress ( 0 ) ;
669
669
break ;
0 commit comments