openrat-cms

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

commit 571ca7e2621d79da5ff289778510ca115bc83835
parent 9ebdf8ad614287124ee3453d261ab49cd80d0e01
Author: dankert <devnull@localhost>
Date:   Fri, 18 Feb 2011 00:15:34 +0100

Loader-Bild anzeigen, wenn Daten gespeichert werden.

Diffstat:
themes/default/css/layout.css | 6++++++
themes/default/images/loader-old.gif | 0
themes/default/images/loader.gif | 0
themes/default/js/openrat.js | 4+++-
4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/themes/default/css/layout.css b/themes/default/css/layout.css @@ -895,3 +895,9 @@ div.window div.status div.ok { background: url(../images/notice_ok.png) no-repeat; padding-left:20px; } +div.window div.status div.loader { + xborder:1px solid silver; + width:230; + height:25px; + background: url(../images/loader.gif) no-repeat; +} diff --git a/themes/default/images/loader-old.gif b/themes/default/images/loader-old.gif Binary files differ. diff --git a/themes/default/images/loader.gif b/themes/default/images/loader.gif Binary files differ. diff --git a/themes/default/js/openrat.js b/themes/default/js/openrat.js @@ -200,6 +200,7 @@ function closeBranch(li,type,id) function formSubmit(form) { + $('div.window div.status').html('<div class="loader" />'); $('.error').removeClass('error'); $(form).fadeTo(0.5); @@ -210,6 +211,7 @@ function formSubmit(form) $.ajax( { 'type':'POST',url:url, data:params, success:function(data, textStatus, jqXHR) { + $('div.window div.status div.loader').html('&nbsp;'); doResponse(data,textStatus); } } ); $(form).fadeIn(); @@ -222,7 +224,7 @@ function doResponse(data,status) alert('Error while saving the values: ' + status); $.each(data['notices'], function(idx,value) { - $('div.window div.status').html('<div>'); + $('div.window div.status').html('<div />'); $('div.window div.status div').addClass( value.status ); $('div.window div.status div').append( value.text ); $('div.window div.status div').delay(3000).fadeOut(2500);