widget.js 539 B

123456789101112131415161718192021
  1. function widget_client_init(){
  2. init_components('.client-container');
  3. }
  4. function widget_client_search(input){
  5. var id = $(input).val();
  6. if(!id) return;
  7. window.location = 'index.php?module=client&page=sheet.client&id='+id;
  8. }
  9. function client_widget_configure_save(widget,modal){
  10. var data = $('#client-widget-form').toJson();
  11. data.action = 'client_widget_configure_save';
  12. data.id = modal.attr('data-widget');
  13. $.action(data,function(){
  14. $.message('success','Configuration enregistrée');
  15. dashboard_dashboardwidget_search();
  16. });
  17. }