]> wagnertech.de Git - kivitendo-erp.git/blobdiff - scripts/generate_client_js_actions.tpl
Automatisches Löschen von Flashanzeige unterdrückbar(2)
[kivitendo-erp.git] / scripts / generate_client_js_actions.tpl
index a29b3258785ef7874d651c157f9703ded212e894..274076a7a8a02a1253afcfc782d01c0082188968 100644 (file)
@@ -35,14 +35,15 @@ ns.eval_json_result = function(data) {
   if (data.error)
     return ns.display_flash('error', data.error);
 
-  $(['info', 'warning', 'error']).each(function(idx, category) {
-    $('#flash_' + category).hide();
-    $('#flash_detail_' + category).hide();
-    $('#flash_' + category + '_disp').hide();
-    $('#flash_' + category + '_content').empty();
-    $('#flash_' + category + '_detail').empty();
-  });
-
+  if (!data.no_flash_clear) {
+    $(['info', 'warning', 'error']).each(function(idx, category) {
+      $('#flash_' + category).hide();
+      $('#flash_detail_' + category).hide();
+      $('#flash_' + category + '_disp').hide();
+      $('#flash_' + category + '_content').empty();
+      $('#flash_' + category + '_detail').empty();
+    });
+  }
   if ((data.js || '') != '')
     eval(data.js);