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

@ -76,7 +76,9 @@ Machines.listeMachines.newMachineNodeFromDict = function (aDict, style)
var anIcon = LI({'id':'machine_' + mid,"style":style});
} else
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;
}
@ -114,7 +116,7 @@ Machines.infoPane.display = function(result)
appendChildNodes( machinePane, back_link );
// 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"},
map(function(a_name) { return SPAN({}, a_name + " ")}, result.alias));
appendChildNodes( title, alias );