openrat-cms

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

commit 3281b73bf8f24075412a96039d7a6f983f1c887a
parent 2234accac495813c286263208977342f52af35e6
Author: Jan Dankert <devnull@localhost>
Date:   Thu,  1 Dec 2011 22:36:06 +0100

Wenn beim Laden einer View ein Fehler auftritt, dann den Ladebalken entfernen.

Diffstat:
themes/default/js/openrat.js | 13++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/themes/default/js/openrat.js b/themes/default/js/openrat.js @@ -148,8 +148,19 @@ function loadView(jo, url ) */ $(jo).empty().html('<div class="loader" />').load(url,function(response, status, xhr) { - $(jo).fadeIn(100); + $(jo).slideDown('fast'); + if ( status == "error" ) + { + // Seite nicht gefunden. + $(this).html(""); + // OK-button Ausblenden. + $(jo).closest('div.frame').find('div.bottom > div.command > input').addClass('invisible'); + // var msg = "Sorry but there was an error: "; + //$(this).html(msg + xhr.status + " " + xhr.statusText); + return; + } + //alert("o ist "+o); //$('textarea.editor').ckeditor( function() { /*alert("editor ready");*/ /* callback code */ }, editorConfig ); //CKEDITOR.replace('text',{