|
@@ -6,6 +6,7 @@ function init_components_dashboard(input){
|
|
onRemove: 'dashboard_widget_delete',
|
|
onRemove: 'dashboard_widget_delete',
|
|
onResize: 'dashboard_widget_resize',
|
|
onResize: 'dashboard_widget_resize',
|
|
onConfigure: 'dashboard_widget_configure',
|
|
onConfigure: 'dashboard_widget_configure',
|
|
|
|
+ onConfigureForm : 'dashboard_widget_configure_form',
|
|
onRefresh: 'dashboard_widget_refresh',
|
|
onRefresh: 'dashboard_widget_refresh',
|
|
onAdd: 'dashboard_widget_add'
|
|
onAdd: 'dashboard_widget_add'
|
|
},{
|
|
},{
|
|
@@ -144,6 +145,7 @@ function init_components_dashboard(input){
|
|
$(this).addClass('active');
|
|
$(this).addClass('active');
|
|
$.action({
|
|
$.action({
|
|
action : data.onConfigure,
|
|
action : data.onConfigure,
|
|
|
|
+ type : menu,
|
|
id : widget.id,
|
|
id : widget.id,
|
|
model : $(this).attr('data-model')
|
|
model : $(this).attr('data-model')
|
|
},function(response){
|
|
},function(response){
|
|
@@ -151,11 +153,21 @@ function init_components_dashboard(input){
|
|
});
|
|
});
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
- case "model":
|
|
|
|
|
|
+ case "properties":
|
|
|
|
+
|
|
|
|
+ $('#dashboard-configure-content').html($('#properties-model').html());
|
|
|
|
|
|
- $('#dashboard-configure-content').html($('#property-model').html());
|
|
|
|
|
|
+ $('#dashboard-properties-form').load('action.php',{action:data.onConfigureForm,id : widget.id});
|
|
|
|
|
|
- //TODO
|
|
|
|
|
|
+ $('#dashboard-properties-save').click(function(){
|
|
|
|
+ var bundle ={
|
|
|
|
+ action : data.onConfigure,
|
|
|
|
+ type : menu,
|
|
|
|
+ id : widget.id,
|
|
|
|
+ meta : $('#dashboard-properties-form').toJson()
|
|
|
|
+ };
|
|
|
|
+ $.action(bundle);
|
|
|
|
+ });
|
|
|
|
|
|
break;
|
|
break;
|
|
case "style":
|
|
case "style":
|
|
@@ -197,6 +209,7 @@ function init_components_dashboard(input){
|
|
$.action({
|
|
$.action({
|
|
action : data.onConfigure,
|
|
action : data.onConfigure,
|
|
id : widget.id,
|
|
id : widget.id,
|
|
|
|
+ type : menu,
|
|
headerBackground : widget.headerBackground,
|
|
headerBackground : widget.headerBackground,
|
|
bodyBackground : widget.bodyBackground,
|
|
bodyBackground : widget.bodyBackground,
|
|
bodyColor : widget.bodyColor,
|
|
bodyColor : widget.bodyColor,
|