[intranet/impression.js] amélioration de l'inteface de l'imprimante

utilisez un navigateur supportant le javascript pour le constater

darcs-hash:20090702224854-bd074-45641515bcbf9e7b6a74167e0e6f21d6e679b4ed.gz
This commit is contained in:
Antoine Durand-Gasselin 2009-07-03 00:48:54 +02:00
parent ae83f549fe
commit 4452a827bc

View file

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