[Bugfix] Dashboards redirecting and widgets not adding (#4272)

bug: Fixes dashboards redirecting #4213 and adding new widgets #4255
This commit is contained in:
Guillaume Coeugnet
2016-08-30 14:56:28 +02:00
committed by Neil Lathwood
parent 6a3f8b6ac2
commit d2db74c44e

View File

@@ -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',