new database-skins now get the source of the skinfile as default

This commit is contained in:
Robert Gaggl 2001-06-18 16:47:17 +00:00
parent bbfcb3d4f4
commit 7371cad6c2

View file

@ -31,6 +31,9 @@ function skineditor_macro(param) {
currSkin.renderSkin("edit");
} else {
var newSkin = new skin();
// since this is a new skin, we give it the source of the skinfile as default
var sf = new File(getProperty("appPath") + req.data.proto + "/" + req.data.name + ".skin");
newSkin.skin = sf.readAll();
newSkin.renderSkin("edit");
}
}