20,741
edits
m (→The Script: prepare combo for format selection) |
|||
| Line 484: | Line 484: | ||
jQueryDiag: function (msg) { | jQueryDiag: function (msg) { | ||
// TODO: add separate Format combo for changing the template to be used (e.g. for refs instead of quotes) | // TODO: add separate Format combo for changing the template to be used (e.g. for refs instead of quotes) | ||
var target_format = "<form name='target'>Target: <select name='selection' onChange='updateTarget()'><option value='0'>to wiki</option><option value='1'>to forum</option></select></form>"; | var target_format = "<form name='target'>Target: <select name='selection' onChange='updateTarget()'><option value='0'>to wiki</option><option value='1'>to forum</option></select>Format: <select name='format' onChange='updateFormat()'><option value='0'>refonly</option><option value='1'>fgcquote</option></select></form>"; | ||
var diagDiv = $('<div id="MyDialog"><textarea id="quotedtext" rows="10"cols="80" style="width: 290px; height: 290px">' + msg + '</textarea>' + target_format + '</div>'); | var diagDiv = $('<div id="MyDialog"><textarea id="quotedtext" rows="10"cols="80" style="width: 290px; height: 290px">' + msg + '</textarea>' + target_format + '</div>'); | ||
var diagParam = { | var diagParam = { | ||