Jump to content

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

oh, we have to use String()?
(so we actually do have to set vars to these form elements rather than use them directly?)
(oh, we have to use String()?)
Line 679: Line 679:
{
{
var f = document.XEBPopupBSLFuncForm;
var f = document.XEBPopupBSLFuncForm;
var funcType = f.inputFuncType;


var call = '{{BSLfunc\n';
var call = '{{BSLfunc\n';
call += '|type=' + funcType + '\n';
call += '|type=' + String(f.inputFuncType) + '\n';
call += '|default=' + f.inputDefault + '\n';
call += '|default=' + String(f.inputDefault) + '\n';
call += '|name=' + f.inputFuncName + '\n';
call += '|name=' + String(f.inputFuncName) + '\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';