Projet

Général

Profil

« Précédent | Suivant » 

Révision 3b4bba4a

Ajouté par Serghei Mihai (congés, retour 15/05) il y a plus de 9 ans

dossiers: printing the whole patient record in pdf format

Closes #3109

Voir les différences:

calebasse/static/js/calebasse.dialog.js
85 85
 * id: jQuery id where you want to replace form by ajaxForm
86 86
*/
87 87
function calebasse_ajax_form(id) {
88
  var selector = id + ' form';
88 89
  function onsuccess(response, status, xhr, form) {
89 90
    if ($('.errorlist', response).length != 0) {
90 91
      $(id).parent().html(response);
91
      $('form').ajaxForm({
92
      $(selector).ajaxForm({
92 93
        success: onsuccess,
93 94
      });
94 95
    }
......
96 97
      window.location.reload(true);
97 98
    }
98 99
  }
99
  $('form').ajaxForm({
100
  $(selector).ajaxForm({
100 101
    success: onsuccess,
101 102
  });
102 103
}

Formats disponibles : Unified diff