Skip to content

Commit ca99e6a

Browse files
committed
correction authentification
1 parent 64900c0 commit ca99e6a

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

desktop/js/authentification.js

+32-32
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
progress(0);
22
eqLogic_id = null;
33

4-
$('.bt_FreeboxOS_Next').off('click').on('click', function () {
4+
$('.bt_Freebox_Next').off('click').on('click', function () {
55
funNext();
66
});
77

8-
$('.bt_FreeboxOS_Previous').off('click').on('click', function () {
8+
$('.bt_Freebox_Previous').off('click').on('click', function () {
99
funPrev();
1010
});
1111

@@ -27,7 +27,7 @@ $('.bt_eqlogic_control_parental').on('click', function () {
2727
progress(95);
2828
});
2929

30-
$('.bt_FreeboxOS_Save').on('click', function () {
30+
$('.bt_Freebox_Save').on('click', function () {
3131
logs('info', "──────────▶︎ :fg-warning:{{Sauvegarde des Paramètres}}:/fg: ◀︎───────────");
3232
ip = $('#input_freeboxIP').val();
3333
//VersionAPP = $('#input_freeAppVersion').val();
@@ -36,37 +36,37 @@ $('.bt_FreeboxOS_Save').on('click', function () {
3636
SetSetting(ip, VersionAPP, Categorie);
3737
});
3838

39-
$('.bt_FreeboxOS_Autorisation').on('click', function () {
39+
$('.bt_Freebox_Autorisation').on('click', function () {
4040
logs('info', "──────────▶︎ :fg-warning:{{Lancement}}:/fg: {{Autorisation Freebox}} ◀︎───────────");
4141
autorisationFreebox();
4242
});
43-
$('.bt_FreeboxOS_resetAPI').on('click', function () {
43+
$('.bt_Freebox_resetAPI').on('click', function () {
4444
logs('info', "──────────▶︎ :fg-warning:{{Lancement}}:/fg: {{Reset de la version API}} ◀︎───────────");
4545
ResetAPI();
4646
});
4747

48-
$('.bt_FreeboxOS_droitVerif').on('click', function () {
48+
$('.bt_Freebox_droitVerif').on('click', function () {
4949
logs('info', "──────────▶︎ :fg-warning:{{Lancement}}:/fg: {{vérification des droits}} ◀︎───────────");
5050
GetSessionData();
5151
});
52-
$('.bt_FreeboxOS_droitVerif_pass').on('click', function () {
52+
$('.bt_Freebox_droitVerif_pass').on('click', function () {
5353
logs('info', "──────────▶︎ :fg-warning:{{Ignorer la vérification des droits}}:/fg: ◀︎───────────");
5454
funNext();
5555
});
5656

57-
$('.bt_FreeboxOS_ResetConfig').on('click', function () {
57+
$('.bt_Freebox_ResetConfig').on('click', function () {
5858
logs('info', "──────────▶︎ :fg-warning:{{Reset de la configuration}}:/fg: ◀︎───────────");
5959
SetDefaultSetting();
6060
GetSetting();
61-
$('.bt_FreeboxOS_Next').show();
61+
$('.bt_Freebox_Next').show();
6262
});
6363

64-
$('.bt_FreeboxOS_Room').on('click', function () {
64+
$('.bt_Freebox_Room').on('click', function () {
6565
logs('info', "──────────▶︎ :fg-warning:{{Lancement}}:/fg: {{Recherche des pièces}} ◀︎───────────");
6666
//SearchTile_room();
6767
});
6868

69-
$('.bt_FreeboxOS_Save_room').on('click', function () {
69+
$('.bt_Freebox_Save_room').on('click', function () {
7070
checkvalue = $('.checkbox_freeboxTiles:checked').val();
7171
if (checkvalue == null) {
7272
logs('info', "───▶︎ :fg-info:Cron Global Titles ::/fg: NOK");
@@ -236,8 +236,8 @@ function AskTrackAuthorization() {
236236
if ($('.li_FreeboxOS_Summary.active').attr('data-href') == "authentification") {
237237

238238
$('.textFreebox').hide();
239-
$('.bt_FreeboxOS_Next').hide();
240-
$('.bt_FreeboxOS_Previous').hide();
239+
$('.bt_Freebox_Next').hide();
240+
$('.bt_Freebox_Previous').hide();
241241
$('.FreeboxOS_OK').hide();
242242
$('.FreeboxOS_OK_NEXT').hide();
243243

@@ -260,8 +260,8 @@ function AskTrackAuthorization() {
260260
logs('error', +data.result.msg);
261261
} else {
262262
$('.textFreebox').show();
263-
$('.bt_FreeboxOS_Next').show();
264-
$('.bt_FreeboxOS_Previous').show();
263+
$('.bt_Freebox_Next').show();
264+
$('.bt_Freebox_Previous').show();
265265
switch (data.result.result.status) {
266266
case "unknown":
267267
$('.textFreebox').text('{{L\'application a un token invalide ou a été révoqué, il faut relancer l\'authentification. Merci}}');
@@ -304,16 +304,16 @@ function AskTrackAuthorization() {
304304
});
305305
} else {
306306
$('.textFreebox').show();
307-
$('.bt_FreeboxOS_Next').show();
308-
$('.bt_FreeboxOS_Previous').show();
307+
$('.bt_Freebox_Next').show();
308+
$('.bt_Freebox_Previous').show();
309309
$('.FreeboxOS_OK').show();
310310
$('.FreeboxOS_OK_NEXT').show();
311311
}
312312
}
313313

314314
function Good() {
315-
$('.bt_FreeboxOS_Previous').hide();
316-
$('.bt_FreeboxOS_NEXT').hide();
315+
$('.bt_Freebox_Previous').hide();
316+
$('.bt_Freebox_NEXT').hide();
317317
$('.alert-info FreeboxOS_OK').text('{{Authentification réussi}}');
318318
logs('info', "Authentification réussi");
319319
}
@@ -372,7 +372,7 @@ function GetSetting() {
372372
console.log('Objet par défaut : ' + data.result.Categorie)
373373
console.log('Version API : ' + data.result.API)
374374
if (data.result.DeviceName == null || data.result.DeviceName == "") {
375-
$('.bt_FreeboxOS_Next').hide();
375+
$('.bt_Freebox_Next').hide();
376376
$('.textFreebox').text('{{Votre Jeedom n\'a pas de Nom, il est impossible de continuer l\'appairage}}');
377377
logs('error', "ERREUR : " + "{{Votre Jeedom n\'a pas de Nom, il est impossible de continuer l\'appairage}}");
378378
$('#div_alert').showAlert({
@@ -499,12 +499,12 @@ function SetDefaultSetting() {
499499
function GetSessionData() {
500500

501501
$('.textFreebox').hide();
502-
$('.bt_FreeboxOS_Next').hide();
503-
$('.bt_FreeboxOS_Previous').hide();
502+
$('.bt_Freebox_Next').hide();
503+
$('.bt_Freebox_Previous').hide();
504504
$('.FreeboxOS_OK').hide();
505505
$('.FreeboxOS_OK_NEXT').hide();
506-
$('.bt_FreeboxOS_droitVerif').show();
507-
$('.bt_FreeboxOS').show();
506+
$('.bt_Freebox_droitVerif').show();
507+
$('.bt_Freebox').show();
508508

509509
$.ajax({
510510
type: "POST",
@@ -545,12 +545,12 @@ function GetSessionData() {
545545
permissions.settings) {
546546
logs('info', "───▶︎ :fg-info:{{Les droits sont}}:/fg: OK");
547547
$('.textFreebox').show();
548-
$('.bt_FreeboxOS_Next').show();
549-
$('.bt_FreeboxOS_Previous').show();
548+
$('.bt_Freebox_Next').show();
549+
$('.bt_Freebox_Previous').show();
550550
$('.FreeboxOS_OK').show();
551551
$('.FreeboxOS_OK_NEXT').show();
552-
$('.bt_FreeboxOS_droitVerif').hide();
553-
$('.bt_FreeboxOS').hide();
552+
$('.bt_Freebox_droitVerif').hide();
553+
$('.bt_Freebox').hide();
554554

555555
progress(65);
556556
}
@@ -623,8 +623,8 @@ function SaveTitelRoom() {
623623
function funNext() {
624624
updateMenu($('.li_FreeboxOS_Summary.active').next());
625625

626-
$('.bt_FreeboxOS_Next').show();
627-
$('.bt_FreeboxOS_Previous').show();
626+
$('.bt_Freebox_Next').show();
627+
$('.bt_Freebox_Previous').show();
628628

629629
logs('info', "──────────▶︎ :fg-warning:{{Étape}} ::/fg: " + $('.li_FreeboxOS_Summary.active').attr('data-href'));
630630

@@ -660,8 +660,8 @@ function funNext() {
660660
function funPrev() {
661661
updateMenu($('.li_FreeboxOS_Summary.active').prev());
662662

663-
$('.bt_FreeboxOS_Next').show();
664-
$('.bt_FreeboxOS_Previous').show();
663+
$('.bt_Freebox_Next').show();
664+
$('.bt_Freebox_Previous').show();
665665

666666
switch ($('.li_FreeboxOS_Summary.active').attr('data-href')) {
667667
case 'home':

0 commit comments

Comments
 (0)