diff --git a/html/ajax_dash.php b/html/ajax_dash.php
index 3b4c56e46..a26e46e5a 100644
--- a/html/ajax_dash.php
+++ b/html/ajax_dash.php
@@ -33,8 +33,11 @@ if ($type == 'placeholder') {
}
elseif (is_file('includes/common/'.$type.'.inc.php')) {
- $results_limit = 10;
- $no_form = true;
+ $results_limit = 10;
+ $no_form = true;
+ $widget_id = mres($_POST['id']);
+ $widget_settings = json_decode(dbFetchCell('select settings from users_widgets where user_widget_id = ?',array($widget_id)),true);
+ $widget_dimensions = dbfetchRow('select size_x,size_y from users_widgets where user_widget_id = ?',array($widget_id));
include 'includes/common/'.$type.'.inc.php';
$output = implode('', $common_output);
$status = 'ok';
diff --git a/html/includes/forms/widget-settings.inc.php b/html/includes/forms/widget-settings.inc.php
new file mode 100644
index 000000000..2ce0cde63
--- /dev/null
+++ b/html/includes/forms/widget-settings.inc.php
@@ -0,0 +1,52 @@
+
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see