From 142351c6efa2e0e105c473c773ba9cda1797573a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Montero=20Lamas?= Date: Sat, 1 Jan 2022 16:56:22 +0100 Subject: [PATCH] Added lock/unlock all (#713) * Added lock/unlock all Lock All , Unlock All as separate buttons. Additionally to InvertLock. * Update burgs-overview.js Updated the syntax to the one suggested by Azgaar. * Lock/unlock in one button Unlock all burgs and lock all burgs in just one button. Additionally to invert lock. * lock unlock in burgs-overview.js Added a way to check if burgs are locked or unlocked with the lock all button, so it works in any situations about locking. * burgs-overview.js lock all Changed burgsonoff to setLockBurgs, also put setLockIcon. * index.html burgsonoff to burgsLockAll * Update burgs-overview.js spacing --- modules/ui/burgs-overview.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ui/burgs-overview.js b/modules/ui/burgs-overview.js index 23fcb998..c479bc95 100644 --- a/modules/ui/burgs-overview.js +++ b/modules/ui/burgs-overview.js @@ -9,7 +9,8 @@ function overviewBurgs() { updateFilter(); updateLockAllIcon(); burgsOverviewAddLines(); - $('#burgsOverview').dialog(); + setLockIcon(); + $("#burgsOverview").dialog(); if (modules.overviewBurgs) return; modules.overviewBurgs = true;