|
@@ -60,6 +60,7 @@ function init_components_dashboard(input){
|
|
}]);*/
|
|
}]);*/
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
component.on('placeholder-click',function(placeholder){
|
|
component.on('placeholder-click',function(placeholder){
|
|
$.action({
|
|
$.action({
|
|
action : data.onAdd,
|
|
action : data.onAdd,
|
|
@@ -98,11 +99,21 @@ function init_components_dashboard(input){
|
|
});
|
|
});
|
|
|
|
|
|
}).on('configure',function(id){
|
|
}).on('configure',function(id){
|
|
- $.action({
|
|
|
|
- action : data.onConfigure,
|
|
|
|
- id : id
|
|
|
|
- },function(response){
|
|
|
|
|
|
+
|
|
|
|
|
|
- });
|
|
|
|
|
|
+ $('#dashboard-configure-menu li').click(function(){
|
|
|
|
+ var li = $(this);
|
|
|
|
+ var menu = li.attr('data-menu');
|
|
|
|
+ li.parent().find('>li').removeClass('active');
|
|
|
|
+ li.addClass('active');
|
|
|
|
+ $.action({
|
|
|
|
+ action : data.onConfigure,
|
|
|
|
+ id : id,
|
|
|
|
+ menu : menu
|
|
|
|
+ },function(response){
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
});
|
|
});
|
|
}
|
|
}
|