Jump to content

MediaWiki:Common.js/edit.js: Difference between revisions

oh, I need to use .value?
(we have to do both?)
(oh, I need to use .value?)
Line 679: Line 679:
{
{
var f = document.XEBPopupBSLFuncForm;
var f = document.XEBPopupBSLFuncForm;
var funcName = String(f.inputFuncName);


var call = '{{BSLfunc\n';
var call = '{{BSLfunc\n';
call += '|type=' + String(f.inputFuncType) + '\n';
call += '|type=' + f.inputFuncName.value + '\n';
call += '|default=' + String(f.inputDefault) + '\n';
call += '|default=' + f.inputDefault.value + '\n';
call += '|name=' + funcName + '\n';
call += '|name=' + f.inputFuncName.value + '\n';
if (!f.inputMac) call += '|mac=no\n';
if (!f.inputMac) call += '|mac=no\n';
if (!f.inputWin) call += '|win=no\n';
if (!f.inputWin) call += '|win=no\n';