From 893e9cf0f431f36e614fd37fcd82b31c9435160d Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sat, 14 Jul 2018 08:41:23 +0000 Subject: [PATCH] dashboard: add a 6 columns option 5 doesn't work because bootstrap works on layouts based on 12, so we can only have 1, 2, 3, 4, 6, 12... --- src/www/fbegin.inc | 9 +++++---- src/www/index.php | 38 ++++++++++++++++++++------------------ 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/src/www/fbegin.inc b/src/www/fbegin.inc index 71fd1dd5f..215b8aa92 100644 --- a/src/www/fbegin.inc +++ b/src/www/fbegin.inc @@ -189,10 +189,11 @@ if($need_alert_display == true) { diff --git a/src/www/index.php b/src/www/index.php index a128459a7..3426d7242 100644 --- a/src/www/index.php +++ b/src/www/index.php @@ -290,16 +290,16 @@ include("fbegin.inc");?> if ($("#column_count_input").val() != $("#column_count").val()) { showSave(); } - $("#column_count_input").val($("#column_count").val()); - $(".dashboard_grid_column").each(function(){ - var widget_col = $(this); - $.each(widget_col.attr("class").split(' '), function(index, classname) { - if (classname.indexOf('col-md') > -1) { - widget_col.removeClass(classname); - } - }); - widget_col.addClass('col-md-'+(12 / $("#column_count_input").val())); - }); + $("#column_count_input").val($("#column_count").val()); + $(".dashboard_grid_column").each(function(){ + var widget_col = $(this); + $.each(widget_col.attr("class").split(' '), function(index, classname) { + if (classname.indexOf('col-md') > -1) { + widget_col.removeClass(classname); + } + }); + widget_col.addClass('col-md-'+(12 / $("#column_count_input").val())); + }); }); $("#column_count").change(); // trigger initial ajax data poller @@ -335,7 +335,7 @@ include("fbegin.inc");?> - +