fonctions

darcs-hash:20061116222253-f46e9-a5888d519a272a8a44ad4d584100a413a799e31e.gz
This commit is contained in:
gdetrez 2006-11-16 23:22:53 +01:00
parent d87e1ec1f4
commit 2ce1e81bcf
2 changed files with 9 additions and 4 deletions

View file

@ -58,6 +58,7 @@ Impression.settings.reset = function () {
log("Reset form"); log("Reset form");
this.theform.reset(); this.theform.reset();
this.init(); this.init();
Impression.settings.update();
} }
Impression.settings.disableForm = function(bool) Impression.settings.disableForm = function(bool)
@ -126,7 +127,7 @@ Impression.settings.disableField = function(afield) {
// //
//// fieldChanges : when a field is changed //// fieldChanges : when a field is changed
// //
Impression.settings.update = function (field) { Impression.settings.update = function () {
var orientation = "portrait"; var orientation = "portrait";
if (this.theform.type_impression_couleur.checked) if (this.theform.type_impression_couleur.checked)
this.getValue(this.theform.type_impression_couleur); this.getValue(this.theform.type_impression_couleur);
@ -197,8 +198,12 @@ Impression.popup.popupImpression = function(code) {
DIV( DIV(
{"id":"printingPopupContent", "style":"background-image:url(/static/images/dialog-printer.png)"}, {"id":"printingPopupContent", "style":"background-image:url(/static/images/dialog-printer.png)"},
SPAN("code: "+code), SPAN("code: "+code),
A({"href":"https://wiki.crans.org/VieCrans/ImpressionReseau", "class":"aide", "target":"_blank"}, "Comment récupérer mon impression ? "))); A({"href":"https://wiki.crans.org/VieCrans/ImpressionReseau", "class":"aide", "target":"_blank"}, "Comment récupérer mon impression ? "),
Popup.display(); A({"href":"index", "class":"aide", "style":"text-align:right;"}, "Nouvelle impression")
)
);
Popup.display();
} }
Impression.popup.popupError = function(erreur) { Impression.popup.popupError = function(erreur) {

View file

@ -199,7 +199,7 @@ Machines.actions.disponibles =
'Demander l\'ouverture d\'un port':'Machines.actions.formulaire.ouverturePort(Machines.currentMid);' 'Demander l\'ouverture d\'un port':'Machines.actions.formulaire.ouverturePort(Machines.currentMid);'
} }
Machines.actions.actionForMachineList = ['Ajouter machine fixe', 'Ajouter machine wifi']; Machines.actions.actionForMachineList = ['Ajouter machine fixe', 'Ajouter machine wifi'];
Machines.actions.actionsForInfoPane = ['Modifier Mac', 'Renommer', 'Supprimer', 'Demander l\'ouverture d\'un port']; Machines.actions.actionsForInfoPane = ['Modifier Mac', 'Renommer', 'Supprimer'];
Machines.actions.makeMenu = function(actionListe) Machines.actions.makeMenu = function(actionListe)
{ {