Skip to content

Commit 8d35de4

Browse files
committed
Corrections Bug et améliorations
* Correction bug page authentification * Update des équipements en version 2.2 afin de corriger bug regroupement équipement
1 parent f80ee5d commit 8d35de4

File tree

4 files changed

+94
-95
lines changed

4 files changed

+94
-95
lines changed

core/class/Free_Update.class.php

-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,6 @@ private static function update_player($logicalId, $logicalId_type, $logicalId_eq
658658
}
659659
private static function update_phone($logicalId, $logicalId_type, $logicalId_eq, $Free_API, $_options)
660660
{
661-
662661
switch ($logicalId) {
663662
case "phone_dell_call":
664663
$Free_API->universal_put(null, 'universal_put', null, null, '/call/log/delete_all', 'POST', null);

desktop/js/authentification.js

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

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

8-
$('.bt_Freebox_Previous').off('click').on('click', function () {
8+
$('.bt_FreeboxOS_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_Freebox_Save').on('click', function () {
30+
$('.bt_FreeboxOS_Save').on('click', function () {
3131
logs('info', "──────────▶︎ :fg-warning:{{Sauvegarde des Paramètres}}:/fg: ◀︎───────────");
3232
ip = $('#input_freeboxIP').val();
3333
//VersionAPP = $('#input_freeAppVersion').val();
@@ -40,33 +40,33 @@ $('.bt_Freebox_Autorisation').on('click', function () {
4040
logs('info', "──────────▶︎ :fg-warning:{{Lancement}}:/fg: {{Autorisation Freebox}} ◀︎───────────");
4141
autorisationFreebox();
4242
});
43-
$('.bt_Freebox_resetAPI').on('click', function () {
43+
$('.bt_FreeboxOS_resetAPI').on('click', function () {
4444
logs('info', "──────────▶︎ :fg-warning:{{Lancement}}:/fg: {{Reset de la version API}} ◀︎───────────");
4545
ResetAPI();
4646
});
4747

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

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

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

69-
$('.bt_Freebox_Save_room').on('click', function () {
69+
$('.bt_FreeboxOS_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");
@@ -82,10 +82,10 @@ $('.bt_Freebox_Save_room').on('click', function () {
8282

8383

8484
function updateMenu(objectclass) {
85-
$('.li_Freebox_Summary.active').removeClass('active');
85+
$('.li_FreeboxOS_Summary.active').removeClass('active');
8686
$(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();
8989
}
9090

9191
function autorisationFreebox() {
@@ -233,13 +233,13 @@ function sendToBdd(jsonParser) {
233233
}
234234

235235
function AskTrackAuthorization() {
236-
if ($('.li_Freebox_Summary.active').attr('data-href') == "authentification") {
236+
if ($('.li_FreeboxOS_Summary.active').attr('data-href') == "authentification") {
237237

238238
$('.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();
243243

244244
$.ajax({
245245
type: "POST",
@@ -260,8 +260,8 @@ function AskTrackAuthorization() {
260260
logs('error', +data.result.msg);
261261
} else {
262262
$('.textFreebox').show();
263-
$('.bt_Freebox_Next').show();
264-
$('.bt_Freebox_Previous').show();
263+
$('.bt_FreeboxOS_Next').show();
264+
$('.bt_FreeboxOS_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}}');
@@ -282,9 +282,9 @@ function AskTrackAuthorization() {
282282
case "granted":
283283
$('.textFreebox').text('{{Félicitation votre Freebox est maintenant reliée à Jeedom.}}');
284284
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();
288288
progress(45);
289289
break;
290290
case "denied":
@@ -304,17 +304,17 @@ function AskTrackAuthorization() {
304304
});
305305
} else {
306306
$('.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();
311311
}
312312
}
313313

314314
function Good() {
315-
$('.bt_Freebox_Previous').hide();
315+
$('.bt_FreeboxOS_Previous').hide();
316316
$('.bt_Freebox_NEXT').hide();
317-
$('.alert-info Freebox_OK').text('{{Authentification réussi}}');
317+
$('.alert-info FreeboxOS_OK').text('{{Authentification réussi}}');
318318
logs('info', "Authentification réussi");
319319
}
320320

@@ -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_Freebox_Next').hide();
375+
$('.bt_FreeboxOS_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({
@@ -381,7 +381,7 @@ function GetSetting() {
381381
});
382382
} else {
383383
$('.textFreebox').text('');
384-
$('.Freebox_OK_NEXT').show();
384+
$('.FreeboxOS_OK_NEXT').show();
385385
}
386386
if (data.result.LogLevel == 100) {
387387
var debugHides = document.getElementsByClassName('debugFreeOS');
@@ -474,7 +474,7 @@ function SetSettingTiles(CronTiles) {
474474
},
475475
success: function (data) {
476476
GetSetting();
477-
$('.Freebox_OK_NEXT').show();
477+
$('.FreeboxOS_OK_NEXT').show();
478478
}
479479
});
480480
}
@@ -499,11 +499,11 @@ function SetDefaultSetting() {
499499
function GetSessionData() {
500500

501501
$('.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();
507507
$('.bt_Freebox').show();
508508

509509
$.ajax({
@@ -545,11 +545,11 @@ function GetSessionData() {
545545
permissions.settings) {
546546
logs('info', "───▶︎ :fg-info:{{Les droits sont}}:/fg: OK");
547547
$('.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();
553553
$('.bt_Freebox').hide();
554554

555555
progress(65);
@@ -621,14 +621,14 @@ function SaveTitelRoom() {
621621
}
622622

623623
function funNext() {
624-
updateMenu($('.li_Freebox_Summary.active').next());
624+
updateMenu($('.li_FreeboxOS_Summary.active').next());
625625

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

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'));
630630

631-
switch ($('.li_Freebox_Summary.active').attr('data-href')) {
631+
switch ($('.li_FreeboxOS_Summary.active').attr('data-href')) {
632632
case 'home':
633633
progress(0);
634634
break;
@@ -658,12 +658,12 @@ function funNext() {
658658
}
659659

660660
function funPrev() {
661-
updateMenu($('.li_Freebox_Summary.active').prev());
661+
updateMenu($('.li_FreeboxOS_Summary.active').prev());
662662

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

666-
switch ($('.li_Freebox_Summary.active').attr('data-href')) {
666+
switch ($('.li_FreeboxOS_Summary.active').attr('data-href')) {
667667
case 'home':
668668
progress(0);
669669
break;

0 commit comments

Comments
 (0)