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

we have to do both?
(oh, we have to use String()?)
(we have to do both?)
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=' + String(f.inputFuncType) + '\n';
call += '|default=' + String(f.inputDefault) + '\n';
call += '|default=' + String(f.inputDefault) + '\n';
call += '|name=' + String(f.inputFuncName) + '\n';
call += '|name=' + funcName + '\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';