From cf4502ac3ba70769a5b505be06627ab78ac889f8 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 26 Feb 2019 18:02:51 +0100 Subject: [PATCH] LSform : Fix display bug when user has no right on the first tab --- public_html/includes/js/LSform.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public_html/includes/js/LSform.js b/public_html/includes/js/LSform.js index 85a1031c..c762d91e 100644 --- a/public_html/includes/js/LSform.js +++ b/public_html/includes/js/LSform.js @@ -81,7 +81,8 @@ var LSform = new Class({ } else { if (!$type(Layout.getElement('dt'))) { - li.setStyle('display','none'); + li.destroy(); + Layout.destroy(); } } }