correction du chemin des image

darcs-hash:20070218213634-f46e9-5722fc75fa86751b5b1534da236b8f7c21905bf0.gz
This commit is contained in:
gdetrez 2007-02-18 22:36:34 +01:00
parent 05ceb3ac13
commit abb7554bd2
2 changed files with 5 additions and 13 deletions

View file

@ -155,16 +155,6 @@ Digicode.codelist.addCode = function (aDict)
*****************************/ *****************************/
Digicode.AJAX = {} Digicode.AJAX = {}
Digicode.AJAX.call = function(page, callBack) { Digicode.AJAX.call = AJAX.call
logDebug("calling AJAX : " + page);
var e = loadJSONDoc(page);
e.addCallback(callBack);
e.addErrback(this.errorHandler);
}
Digicode.AJAX.errorHandler = function(d) {
//Digicode.AJAX..modifPrix("Erreur", false);
logError("AJAX Error: " + d);
}
setInterval(Digicode.codelist.load, 30000); setInterval(Digicode.codelist.load, 30000);

View file

@ -76,7 +76,9 @@ Machines.listeMachines.newMachineNodeFromDict = function (aDict, style)
var anIcon = LI({'id':'machine_' + mid,"style":style}); var anIcon = LI({'id':'machine_' + mid,"style":style});
} else } else
var anIcon = LI( {'id':'machine_' + mid} ); var anIcon = LI( {'id':'machine_' + mid} );
appendChildNodes(anIcon, A({"href":"#", "onclick":"Machines.infoPane.loadInfo('"+mid+"');return false;"}, IMG({"src":"/static/images/" + image}), SPAN({},nom) ) ); appendChildNodes(anIcon, A({"href":"#", "onclick":"Machines.infoPane.loadInfo('"+mid+"');return false;"},
IMG({"src":"static/" + image}),
SPAN({},nom) ) );
return anIcon; return anIcon;
} }
@ -114,7 +116,7 @@ Machines.infoPane.display = function(result)
appendChildNodes( machinePane, back_link ); appendChildNodes( machinePane, back_link );
// titre (nom de machine + alias) // titre (nom de machine + alias)
var title = H2({}, IMG({"src":"/static/images/machines_icon_" + result.type + ".png"}), " ", result.nom); var title = H2({}, IMG({"src":"./static/machines_icon_" + result.type + ".png"}), " ", result.nom);
var alias = DIV({"class":"alias"}, var alias = DIV({"class":"alias"},
map(function(a_name) { return SPAN({}, a_name + " ")}, result.alias)); map(function(a_name) { return SPAN({}, a_name + " ")}, result.alias));
appendChildNodes( title, alias ); appendChildNodes( title, alias );