From d2db74c44e23c43951629ebafd643e0390769e5f Mon Sep 17 00:00:00 2001 From: Guillaume Coeugnet Date: Tue, 30 Aug 2016 14:56:28 +0200 Subject: [PATCH] [Bugfix] Dashboards redirecting and widgets not adding (#4272) bug: Fixes dashboards redirecting #4213 and adding new widgets #4255 --- html/pages/front/tiles.php | 1 + 1 file changed, 1 insertion(+) diff --git a/html/pages/front/tiles.php b/html/pages/front/tiles.php index 7826c8be5a..f1013d6bc8 100644 --- a/html/pages/front/tiles.php +++ b/html/pages/front/tiles.php @@ -326,6 +326,7 @@ foreach (dbFetchRows("SELECT * FROM `widgets` ORDER BY `widget_title`") as $widg $('.place_widget').on('click', function(event, state) { var widget_id = $(this).data('widget_id'); + event.preventDefault(); $.ajax({ type: 'POST', url: 'ajax_form.php',