openrat-cms

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

commit d472c977da202e042ce71611fa0f622295e179c6
parent 32b617fe3578a3c4185bb6c88f32fab5f8aa714f
Author: Jan Dankert <devnull@localhost>
Date:   Sun,  6 Nov 2011 23:42:07 +0100

Lade-Balken nur für das betreffende Fenster anzeigen.

Diffstat:
themes/default/js/openrat.js | 16+++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/themes/default/js/openrat.js b/themes/default/js/openrat.js @@ -321,18 +321,20 @@ function linkSubmit(data) function formSubmit(form) { - $('div.window div.status').html('<div class="loader" />'); - $('.error').removeClass('error'); + var status = $(form).parent().parent().parent().find('div.bottom div.status'); + + $(status).html('<div class="loader" />'); + + // Alle vorhandenen Error-Marker entfernen. + // Falls wieder ein Fehler auftritt, werden diese erneut gesetzt. + $(form).find('.error').removeClass('error'); - $(form).fadeTo(0.5); var params = $(form).serializeArray(); - //params['json'] = 'true'; - //alert(params); - var url = $(form).attr('action'); + var url = './dispatcher.php'; // Alle Parameter befinden sich im Formular $.ajax( { 'type':'POST',url:url, data:params, success:function(data, textStatus, jqXHR) { - $('div.window div.status div.loader').html('&nbsp;'); + $(status).find('div.loader').html('&nbsp;'); doResponse(data,textStatus); } } ); $(form).fadeIn();