widget.js 471 B

12345678910111213141516171819
  1. function notification_widget_configure_save(widget,modal){
  2. var data = $('#notification-widget-form').toJson();
  3. data.types = [];
  4. $('#widget-notification-list input[type="checkbox"]:checked').each(function(){
  5. data.types.push($(this).val())
  6. });
  7. data.action = 'notification_widget_configure_save';
  8. data.id = modal.attr('data-widget');
  9. $.action(data,function(){
  10. $.message('success','Configuration enregistrée');
  11. dashboard_dashboardwidget_search();
  12. });
  13. }