this.sound.bad();
- //FIXME - need to escape these values before embedding them into xml.. but window.escape was weird..
+ //FIMXE - is that good enough of an escape job?
+ s = s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
var xml = '<vbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" flex="1">'
+ '<groupbox flex="1" style="overflow: auto; border: solid thin red;"><caption label="' + (title) + '"/>';
'<groupbox><caption label="Exceptions"/>' +
'<grid><columns><column/><column/></columns><rows>';
for (var i = 0; i < r.length; i++) {
+ var t1 = String(r[i].ilsevent).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
+ var t2 = String(r[i].textcode).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
+ var t3 = String((o_params.text[r[i].ilsevent] ? o_params.text[r[i].ilsevent](r[i]) : '')).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
+ var t4 = String(r[i].desc).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
xml += '<row>' +
- '<description style="color: red" tooltiptext="' + r[i].ilsevent + '">' + r[i].textcode + '</description>' +
- '<description>' + (o_params.text[r[i].ilsevent] ? o_params.text[r[i].ilsevent](r[i]) : '') + '</description>' +
- '</row><row>' + '<description>' + r[i].desc + '</description>' + '</row>';
+ '<description style="color: red" tooltiptext="' + t1 + '">' + t2 + '</description>' +
+ '<description>' + t3 + '</description>' +
+ '</row><row>' + '<description>' + t4 + '</description>' + '</row>';
}
xml += '</rows></grid></groupbox><groupbox><caption label="Override"/><hbox>' +
'<description>Force this action?</description>' +
params.message += '"' + params.volume_label + '" on the following record (and change their circ libs to match)?';
}
- xml += '<description>' + params.message + '</description>';
+ xml += '<description>' + params.message.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>') + '</description>';
xml += '<hbox><button label="Transfer" name="fancy_submit"/>';
xml += '<button label="Cancel" accesskey="C" name="fancy_cancel"/></hbox>';
xml += '<iframe style="overflow: scroll" flex="1" src="' + urls.XUL_BIB_BRIEF + '?docid=' + params.docid + '"/>';