Problème de l'interface impression:

Je pense avoit trouvéle problèmel'interface d'impression.
En fait, à cause d'un stupide problème de variable globale,
le mêmecallback étai appeléàchaque fo.. (javascript sucks !)

darcs-hash:20080625091737-69ccb-e1ee44930011a57d9eb88119a5269dc264c36322.gz
This commit is contained in:
Grgoire Dtrez 2008-06-25 11:17:37 +02:00
parent 06f4336670
commit 29347796ff
2 changed files with 4 additions and 2 deletions

View file

@ -267,7 +267,9 @@ Impression.mesCodes.displayCodes = function (result) {
*****************************/
Impression.AJAX = {};
Impression.AJAX.call = AJAX.call
Impression.AJAX.call = function(url,callback) {
AJAX.call( url, callback, true);
}
Impression.AJAX.modifPrix = function( text, wheel )
{

View file

@ -8,7 +8,7 @@ AJAX.call = function(page, callBack, loadingMessage) {
//console.debug("calling AJAX : " + page);
if (loadingMessage) {
Crans.loading.display(true);
oldCallBack = callBack;
var oldCallBack = callBack;
callBack = function(r) {
Crans.loading.display(false);
oldCallBack( r );