mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Allow dashboard widgets to be draggable only in edit mode (#6261)
This commit is contained in:
@@ -299,7 +299,11 @@
|
|||||||
foreach($dashboard as $row) {
|
foreach($dashboard as $row) {
|
||||||
$dashboard_name = strtolower($row['dashboard_name']);
|
$dashboard_name = strtolower($row['dashboard_name']);
|
||||||
$dashboard_name = str_replace(" ", "_", $dashboard_name);
|
$dashboard_name = str_replace(" ", "_", $dashboard_name);
|
||||||
echo "<div class='widget' id='".$dashboard_name."' draggable='true'>\n";
|
$draggable = '';
|
||||||
|
if ($_GET['edit'] == 'true') {
|
||||||
|
$draggable = "draggable='true'";
|
||||||
|
}
|
||||||
|
echo "<div class='widget' id='".$dashboard_name."' ".$draggable.">\n";
|
||||||
include($row['dashboard_path']);
|
include($row['dashboard_path']);
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
$x++;
|
$x++;
|
||||||
|
|||||||
Reference in New Issue
Block a user