widget.js 401 B

1234567891011121314151617
  1. function widget_document_init(){
  2. init_components('.widgetDocumentContainer');
  3. }
  4. function document_widget_configure_save(widget,modal){
  5. var data = $('#document-widget-form').toJson();
  6. data.action = 'document_widget_configure_save';
  7. data.id = modal.attr('data-widget');
  8. $.action(data,function(){
  9. $.message('success','Configuration enregistrée');
  10. dashboard_dashboardwidget_search();
  11. });
  12. }