From 3541625f6d8fbc0d8ae8d4689a834fe10c19f3de Mon Sep 17 00:00:00 2001 From: AlexC <40072887+alexdcrane@users.noreply.github.com> Date: Mon, 24 Jan 2022 17:05:15 -0700 Subject: [PATCH] Allow dashboard widgets to be draggable only in edit mode (#6261) --- core/dashboard/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/dashboard/index.php b/core/dashboard/index.php index 71755f06b1..095917e4cc 100644 --- a/core/dashboard/index.php +++ b/core/dashboard/index.php @@ -299,7 +299,11 @@ foreach($dashboard as $row) { $dashboard_name = strtolower($row['dashboard_name']); $dashboard_name = str_replace(" ", "_", $dashboard_name); - echo "
\n"; + $draggable = ''; + if ($_GET['edit'] == 'true') { + $draggable = "draggable='true'"; + } + echo "
\n"; include($row['dashboard_path']); echo "
\n"; $x++;