diff --git a/front/js/settings_utils.js b/front/js/settings_utils.js
index f98298b1..5bb17329 100755
--- a/front/js/settings_utils.js
+++ b/front/js/settings_utils.js
@@ -80,19 +80,22 @@
});
- html += `
-
+ html += `
`
});
@@ -100,6 +103,41 @@
return html;
}
+
+ // -----------------------------------------------------------------------------
+ // Open or close all settings
+ // -----------------------------------------------------------------------------
+ function toggleAllSettings(openOrClose = '')
+ {
+ inStr = ' in';
+ allOpen = true;
+ openIcon = 'fa-angle-double-down';
+ closeIcon = 'fa-angle-double-up';
+
+ $('.panel-collapse').each(function(){
+ if($(this).attr('class').indexOf(inStr) == -1)
+ {
+ allOpen = false;
+ }
+ })
+
+ if(allOpen == false || openOrClose == 'open')
+ {
+ // open all
+ $('div[data-myid="collapsible"]').each(function(){$(this).attr('class', 'panel-collapse collapse in')})
+ $('div[data-myid="collapsible"]').each(function(){$(this).attr('style', 'height:inherit')})
+ $('#toggleSettings').attr('class', $('#toggleSettings').attr('class').replace(openIcon, closeIcon))
+
+ }
+ else{
+ // close all
+ $('div[data-myid="collapsible"]').each(function(){$(this).attr('class', 'panel-collapse collapse ')})
+ $('#toggleSettings').attr('class', $('#toggleSettings').attr('class').replace(closeIcon, openIcon))
+ }
+
+ }
+
+
// -------------------------------------------------------------------
// Checks if all schedules are the same
function schedulesAreSynchronized(prefixesOfEnabledPlugins, pluginsData)
diff --git a/front/settings.php b/front/settings.php
index 0f126195..2ab9360c 100755
--- a/front/settings.php
+++ b/front/settings.php
@@ -279,7 +279,8 @@ while ($row = $result -> fetchArray (SQLITE3_ASSOC)) {
`;
- headerHtml = `
+ // Plugin HEADER
+ headerHtml = `