From f837151c5cb9d33766d20086b60197752ca6d484 Mon Sep 17 00:00:00 2001 From: Mathieu Segaud Date: Wed, 19 Dec 2007 15:43:07 +0100 Subject: [PATCH] Impression short-edge On active la possibilit d'imprimer le long du petit ct sur l'imprimante du Cr@ns. darcs-hash:20071219144307-c67a9-14766594db1a2c04b31258bf9de0c2e5be655729.gz --- intranet/modules/impression/static/impression.js | 7 +++++-- intranet/modules/impression/templates/impression.tmpl | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/intranet/modules/impression/static/impression.js b/intranet/modules/impression/static/impression.js index c4243403..ad9b8106 100644 --- a/intranet/modules/impression/static/impression.js +++ b/intranet/modules/impression/static/impression.js @@ -136,8 +136,10 @@ Impression.settings.update = function () { if (this.theform.disposition_recto.checked) this.getValue(this.theform.disposition_recto); - else + else if (this.theform.disposition_recto_verso.checked) this.getValue(this.theform.disposition_recto_verso); + else + this.getValue(this.theform.disposition_recto_verso_short); this.getValue(this.theform.papier); this.getCopies(this.theform.nb_copies); this.getValue(this.theform.agrafes); @@ -145,7 +147,8 @@ Impression.settings.update = function () { if ( ( this.papier != "A4" ) || ( (this.disposition == "recto") && (this.nb_pages>50) ) || - ( (this.disposition == "rectoverso") && (this.nb_pages>100) ) ) + ( (this.disposition == "rectoverso") && (this.nb_pages>100) ) || + ( (this.disposition == "rectoversoshort" && (this.nb_pages>100) ))) { this.setValue(this.theform.agrafes, "pasdagraphes"); this.disableField(this.theform.agrafes); diff --git a/intranet/modules/impression/templates/impression.tmpl b/intranet/modules/impression/templates/impression.tmpl index 1f5b7e00..85865a02 100644 --- a/intranet/modules/impression/templates/impression.tmpl +++ b/intranet/modules/impression/templates/impression.tmpl @@ -57,6 +57,10 @@ Crans.messages.setMessage('$errorMsg.replace("\'","\\\'")', 'errorMessage') Recto-verso +