[*] BO : Added simulation mode to the dashboard

This commit is contained in:
Damien Metzger
2013-11-15 18:07:23 +01:00
parent 4bd7164507
commit b62952accf
6 changed files with 107 additions and 9 deletions
+14
View File
@@ -289,4 +289,18 @@ $(document).ready( function () {
getBlogRss();
bindSubmitDashConfig();
bindCancelDashConfig();
$('.ps_dashboard_simulation').change(function(e) {
$.ajax({
url : dashboard_ajax_url,
data : {
ajax:true,
action:'setSimulationMode',
PS_DASHBOARD_SIMULATION: $(this).val()
},
success : function(result) {
refreshDashboard(false, false);
}
});
});
});