openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 3b2369962568cf2f87806fbc37390bc360874427
parent 53b1b5c8887a5822eda8cc8ca58e48518242a7fd
Author: Jan Dankert <devnull@localhost>
Date:   Sat, 20 Oct 2012 13:27:00 +0200

Für alle Notices (auch warn und error) ein Timeout festlegen.

Diffstat:
Mthemes/default/js/openrat.js | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/themes/default/js/openrat.js b/themes/default/js/openrat.js @@ -854,8 +854,14 @@ function doResponse(data,status,element) $(this).fadeOut('fast',function() { $(this).remove(); } ); } ); + var timeoutSeconds; if ( value.status == 'ok' ) - $(notice).delay(3000).fadeOut( function() { $(this).remove(); } ); + timeoutSeconds = 2; + else + timeoutSeconds = 8; + + + $(notice).delay(timeoutSeconds*1000).fadeOut( function() { $(this).remove(); } ); /* $('div.window div.status').html('<div />');