|
@@ -153,11 +153,17 @@ function init_components_dashboard(input){
|
|
|
break;
|
|
|
case "style":
|
|
|
$('#dashboard-configure-content').html($('#configure-style').html());
|
|
|
- $.action({
|
|
|
- action : 'dashboard_widget_by_id',
|
|
|
- id : widget.id
|
|
|
- },function(response){
|
|
|
- $('#configure-style-table').fromJson(response.item).off('change').change(function(){
|
|
|
+
|
|
|
+ var form = {};
|
|
|
+ form['widget-header-background'] = widget.headerBackground ;
|
|
|
+ form['widget-body-background'] = widget.bodyBackground;
|
|
|
+ form['widget-body-color'] = widget.bodyColor ;
|
|
|
+ form['widget-header-icon-color'] = widget.iconColor;
|
|
|
+ form['widget-header-title-color'] = widget.titleColor;
|
|
|
+ form['widget-header-icon'] = widget.icon;
|
|
|
+
|
|
|
+
|
|
|
+ $('#configure-style-table').fromJson(form).off('change').change(function(){
|
|
|
|
|
|
var form = $('#configure-style-table').toJson();
|
|
|
|
|
@@ -193,7 +199,7 @@ function init_components_dashboard(input){
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- });
|
|
|
+
|
|
|
init_components('#dashboard-configure-content');
|
|
|
break;
|
|
|
}
|