FlightGear wiki:Instant-Refs: Difference between revisions

Jump to navigation Jump to search
Line 355: Line 355:
   // Show a jQuery dialog
   // Show a jQuery dialog
   jQueryDiag: function (msg) {
   jQueryDiag: function (msg) {
     var target_format = "<form name='target'>Format: <select name='selection' onChange='updateTarget()'><option value='0'>to wiki</option><option value='1'>to forum</option></select></form>";
// 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 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 = {

Navigation menu