Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7c3c6e8d

Von Moritz Bunkus vor etwa 8 Jahren hinzugefügt

  • ID 7c3c6e8d70ee3c45305700eb90f020a16b1dcdd1
  • Vorgänger c09671ad
  • Nachfolger cff913a1

ClientJS: Update nach »Automatisches Löschen von Flashanzeige unterdrückbar«

Unterschiede anzeigen:

js/client_js.js
35 35
  if (data.error)
36 36
    return ns.display_flash('error', data.error);
37 37

  
38
  if (!data.no_flash_clear) {
39 38
  $(['info', 'warning', 'error']).each(function(idx, category) {
40 39
    $('#flash_' + category).hide();
41 40
    $('#flash_detail_' + category).hide();
......
43 42
    $('#flash_' + category + '_content').empty();
44 43
    $('#flash_' + category + '_detail').empty();
45 44
  });
46
  }
45

  
47 46
  if ((data.js || '') != '')
48 47
    eval(data.js);
49 48

  
......
151 150
      else if (action[0] == 'redirect_to')          window.location.href = action[1];
152 151
      else if (action[0] == 'flash')                kivi.display_flash(action[1], action[2]);
153 152
      else if (action[0] == 'flash_detail')         kivi.display_flash_detail(action[1], action[2]);
154
      else if (action[0] == 'clear_flash')          kivi.clear_flash(action[1], action[2]);
153
      else if (action[0] == 'clear_flash')          kivi.display_flash_detail(action[1], action[2]);
155 154
      else if (action[0] == 'reinit_widgets')       kivi.reinit_widgets();
156 155
      else if (action[0] == 'run')                  kivi.run(action[1], action.slice(2, action.length));
157 156
      else if (action[0] == 'run_once_for')         kivi.run_once_for(action[1], action[2], action[3]);

Auch abrufbar als: Unified diff