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
This commit is contained in:
Mathieu Segaud 2007-12-19 15:43:07 +01:00
parent 6980474590
commit f837151c5c
2 changed files with 9 additions and 2 deletions

View file

@ -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);

View file

@ -57,6 +57,10 @@ Crans.messages.setMessage('$errorMsg.replace("\'","\\\'")', 'errorMessage')
<input type="radio" name="disposition" id="disposition_recto_verso" class="inputRadio" value="$crans.impression.IMPRESSION_RECTO_VERSO" checked="checked" onclick="Impression.settings.update(this);" />
Recto-verso
</label>
<label for="disposition_recto_verso_short" class="labelRadio compact">
<input type="radio" name="disposition" id="disposition_recto_verso_short" class="inputRadio" value="$crans.impression.IMPRESSION_RECTO_VERSO_SHORT" checked="checked" onclick="Impression.settings.update(this);" />
Recto-verso court
</label>
</fieldset>
</div>