Commit eeca1881 authored by Ad Schellevis's avatar Ad Schellevis

(dashboard) on small screens, all widgets most move to force a repaint...

parent 2053bd01
...@@ -252,8 +252,12 @@ include("fbegin.inc");?> ...@@ -252,8 +252,12 @@ include("fbegin.inc");?>
if (container.attr('id').split('_')[1] != target_col) { if (container.attr('id').split('_')[1] != target_col) {
widget.remove().appendTo("#dashboard_"+target_col); widget.remove().appendTo("#dashboard_"+target_col);
} }
} else {
// dashboard_colx (source) is not visible, move other items to col4
widget.remove().appendTo("#dashboard_col4");
} }
}); });
// show dashboard widgets after initial rendering // show dashboard widgets after initial rendering
$("#dashboard_container").show(); $("#dashboard_container").show();
...@@ -318,7 +322,7 @@ include("fbegin.inc");?> ...@@ -318,7 +322,7 @@ include("fbegin.inc");?>
</div> </div>
</div> </div>
<div id="dashboard_container" class="row" style="display:none"> <div id="dashboard_container" class="row" style="display:none">
<div class="col-xs-12 col-md-4 dashboard_grid_column" id="dashboard_col1"> <div class="col-xs-12 col-md-4 dashboard_grid_column hidden" id="dashboard_colx">
<?php <?php
foreach ($widgetCollection as $widgetItem): foreach ($widgetCollection as $widgetItem):
...@@ -394,6 +398,7 @@ include("fbegin.inc");?> ...@@ -394,6 +398,7 @@ include("fbegin.inc");?>
<?php <?php
endforeach;?> endforeach;?>
</div> </div>
<div class="col-md-4 dashboard_grid_column" id="dashboard_col1"></div>
<div class="col-md-4 dashboard_grid_column" id="dashboard_col2"></div> <div class="col-md-4 dashboard_grid_column" id="dashboard_col2"></div>
<div class="col-md-4 dashboard_grid_column" id="dashboard_col3"></div> <div class="col-md-4 dashboard_grid_column" id="dashboard_col3"></div>
<div class="col-md-4 dashboard_grid_column" id="dashboard_col4"></div> <div class="col-md-4 dashboard_grid_column" id="dashboard_col4"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment