X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/2738c03e1340255baade2fd357aafbbfd1347d5e..3f4f01dcd306d7ebb51a1186d722e6aecd237003:/scripts/generate_client_js_actions.tpl diff --git a/scripts/generate_client_js_actions.tpl b/scripts/generate_client_js_actions.tpl index 55206ea6a..46032667f 100644 --- a/scripts/generate_client_js_actions.tpl +++ b/scripts/generate_client_js_actions.tpl @@ -16,8 +16,10 @@ function eval_json_result(data) { if (data.error) return display_flash('error', data.error); - $('#flash_error').hide(); - $('#flash_error_content').empty(); + $(['info', 'warning', 'error']).each(function(idx, category) { + $('#flash_' + category).hide(); + $('#flash_' + category + '_content').empty(); + }); if ((data.js || '') != '') eval(data.js);