X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/c00f1e29f10d6b371dffc401f6e2c5d11eeb16c5..d59576d22d6c7720c0078b3e17232c81bbaf9373:/scripts/generate_client_js_actions.tpl diff --git a/scripts/generate_client_js_actions.tpl b/scripts/generate_client_js_actions.tpl index 9e2180289..50a427c45 100644 --- a/scripts/generate_client_js_actions.tpl +++ b/scripts/generate_client_js_actions.tpl @@ -8,6 +8,12 @@ namespace("kivi", function(ns) { ns.display_flash = function(type, message) { $('#flash_' + type + '_content').text(message); $('#flash_' + type).show(); + $('#frame-header')[0].scrollIntoView(); +}; + +ns.display_flash_detail = function(type, message) { + $('#flash_' + type + '_detail').html(message); + $('#flash_' + type + '_disp').show(); }; ns.eval_json_result = function(data) { @@ -19,7 +25,10 @@ ns.eval_json_result = function(data) { $(['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 || '') != '')