widget.js 366 B

1234567891011
  1. /* HTML */
  2. function rocketchat_widget_rocketchat_configure_save(widget,modal){
  3. var data = $('#rocketchat-widget-rocketchat-form').toJson();
  4. data.action = 'rocketchat_widget_rocketchat_configure_save';
  5. data.id = modal.attr('data-widget');
  6. $.action(data,function(){
  7. $.message('success','Configuration enregistrée');
  8. dashboard_dashboardwidget_search();
  9. });
  10. }