This is fishy, as these extraneous images are defined with the extension .gif, and betzaNew.js is programmed to keep the existing extension, or use that of the regular pieces if no extension was specified. And this was working when I made the Diagram. SOmething is going wrong here, but I don't see immediately what. The code to create the image URL looks OK:
var im = imag[n];
if(im.indexOf('%') < 0) return graphDir + prefix + im; // from standard set
var p = im.replace('%', prefix); // custom graphics; replace % by color prefix
p = p.split('.'); if(p.length == 1) p[1] = graphSuffix;
p = p[0] + (p[1] == '' ? '' : '.' + p[1]);
if(p[0] == '*') p = graphDir + p.substring(1);
return p;
After the split p[1] should have been 'gif', and p.length 2.
This is fishy, as these extraneous images are defined with the extension .gif, and betzaNew.js is programmed to keep the existing extension, or use that of the regular pieces if no extension was specified. And this was working when I made the Diagram. SOmething is going wrong here, but I don't see immediately what. The code to create the image URL looks OK:
After the split p[1] should have been 'gif', and p.length 2.