Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 824735fc

Von Moritz Bunkus vor mehr als 2 Jahren hinzugefügt

  • ID 824735fcfa7c7bb9a5e76ceb2214c6a7cb42e60a
  • Vorgänger 7b5a9b16
  • Nachfolger e4b4e4d3

E-Mails als HTML verschicken: Versand in Einkaufs-/Verkaufsbelegen

Unterschiede anzeigen:

js/kivi.SalesPurchase.js
241 241
    if (!kivi.SalesPurchase.check_required_email_fields())
242 242
      return false;
243 243

  
244
    // ckeditor gets de-initialized when removing the children from
245
    // the DOM. Therefore we have to manually preserve its content
246
    // over the children's relocation.
247

  
248
    var message = $('#email_form_message').val();
249

  
244 250
    $('#send_email_dialog').children().remove().appendTo('#email_inputs');
245 251
    $('#send_email_dialog').dialog('close');
246 252

  
253
    $('#email_form_message').val(message);
254

  
247 255
    kivi.submit_form_with_action('#form', $('#form').data('send-email-action'));
248 256

  
249 257
    return true;
......
255 263

  
256 264
    $('#print_options').children().remove().appendTo('#email_form_print_options');
257 265

  
266
    kivi.reinit_widgets();
267

  
258 268
    var to_focus = $('#email_form_to').val() === '' ? 'to' : 'subject';
259 269
    $('#email_form_' + to_focus).focus();
260 270
  };

Auch abrufbar als: Unified diff