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 +