From 4452a827bc4203878bb2bb83587911c6c08d4aef Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Fri, 3 Jul 2009 00:48:54 +0200 Subject: [PATCH] =?UTF-8?q?[intranet/impression.js]=20am=C3=A9lioration=20?= =?UTF-8?q?de=20l'inteface=20de=20l'imprimante?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit utilisez un navigateur supportant le javascript pour le constater darcs-hash:20090702224854-bd074-45641515bcbf9e7b6a74167e0e6f21d6e679b4ed.gz --- intranet/modules/impression/static/impression.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/intranet/modules/impression/static/impression.js b/intranet/modules/impression/static/impression.js index 15895bba..9a8bcb09 100644 --- a/intranet/modules/impression/static/impression.js +++ b/intranet/modules/impression/static/impression.js @@ -148,11 +148,16 @@ Impression.settings.update = function () { this.getCopies(this.theform.nb_copies); this.getValue(this.theform.agrafage); // Contraintes - if ( - /* ( this.papier != "A4" ) || */ - ( (this.disposition_recto.checked) && (this.nb_pages>50) ) || - ( (this.disposition_rectoverso.checked) && (this.nb_pages>100) )|| - ( (this.disposition_livret.checked) && (this.nb_pages>60) ) + if (Impression.settings.nb_pages > 60) + { this.disableField(this.theform.disposition_livret); + this.theform.disposition_livret.checked = false } + if ( ((this.papier == "A4") && + (( (this.theform.disposition_recto.checked) && (Impression.settings.nb_pages>50) ) || + ( (this.theform.disposition_recto_verso.checked) && (Impression.settings.nb_pages>100) ) )) + || + ((this.papier == "A3") && + (( (this.theform.disposition_recto.checked) && (Impression.settings.nb_pages>30) ) || + ( (this.theform.disposition_recto_verso.checked) && (Impression.settings.nb_pages>60) ) )) ) { this.setValue(this.theform.agrafage, "None");