Projet

Général

Profil

« Précédent | Suivant » 

Révision 243e22a9

Ajouté par Jérôme Schneider il y a presque 10 ans

dossiers: transform form to calebasse ajax form

Fixes forms errors

Voir les différences:

calebasse/static/js/calebasse.dialog.js
76 76
      });
77 77
}
78 78

  
79
/**
80
 * Transform form(s) into your id to ajax forms
81
*/
82
function calebasse_ajax_form(id) {
83
  function onsuccess(response, status, xhr, form) {
84
    $(id).html(response);
85
    $('form').ajaxForm({
86
      success: onsuccess,
87
    });
88
  }
89
  $('form').ajaxForm({
90
    success: onsuccess,
91
  });
92
}
93

  
79 94
function add_dialog(on, url, title, width, btn_text) {
80 95
  // function used to add patient schedules, events and acts
81 96

  

Formats disponibles : Unified diff