From 92aa6c9f8c16cc7d3d5b035b283698b92b774fd7 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 31 Mar 2009 15:29:56 +0000 Subject: [PATCH] - LSdefault : Correction d'une erreur d'affichage des messages d'erreurs --- trunk/includes/js/LSdefault.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/trunk/includes/js/LSdefault.js b/trunk/includes/js/LSdefault.js index 8c206dd0..cd86da89 100644 --- a/trunk/includes/js/LSdefault.js +++ b/trunk/includes/js/LSdefault.js @@ -14,7 +14,7 @@ var LSdefault = new Class({ this.LSerror = $('LSerror'); this.LSerror.setOpacity(0); this.LSerror_open = 0; - this.LSerror.addEvent('dblclick',this.hideLSerror.bind(this)); + this.LSerror.addEvent('dblclick',this.hideLSerror.bind(this,0)); // LSinfos this.LSinfos = $('LSinfos'); @@ -143,7 +143,7 @@ var LSdefault = new Class({ }, checkAjaxReturn: function(data) { - this.hideLSerror(); + this.hideLSerror(0); if ($type(data) == 'object') { if (($type(data.LSredirect)) && (!$type(data.LSdebug)) ) { document.location = data.LSredirect; @@ -228,10 +228,15 @@ var LSdefault = new Class({ } }, - hideLSerror: function(){ + hideLSerror: function(withoutEffect){ if (this.LSerror_open) { - this.fx.LSerror.start(0.9,0); this.LSerror_open = 0; + if (withoutEffect==0) { + this.fx.LSerror.start(0.9,0); + } + else { + this.fx.LSerror.set(0); + } } },