User:CWii/JB2script.js: Difference between revisions

Content deleted Content added
CWii (talk | contribs)
sigh,
CWii (talk | contribs)
fix agian
Line 68:
switch( value ) {
default:
case 'yes':
work_area = new QuickForm.element( {
type: 'field',
label: 'Movable',
name: 'work_area'
} );
} );
work_area.append( {
type: 'input',
name: 'newname',
label: 'New name: '
} );
} );
work_area.append( {
type: 'input',
name: 'comCat1',
label: 'Commons Cat #1: '
} );
work_area.append( {
type: 'input',
name: 'comCat2',
label: 'Commons Cat #2: '
} );
work_area.append( {
type: 'input',
name: 'comCat3',
label: 'Commons Cat #3: '
} );
work_area.append( {
type: 'input',
name: 'comCat4',
label: 'Commons Cat #4: '
} );
work_area.append( { type:'submit' } );
work_area = work_area.render();
old_area.parentNode.replaceChild( work_area, old_area );
break;
case 'no':
work_area = new QuickForm.element( {
type: 'textareafield',
label: 'Reason:Cannot be moved',
name: 'reasonwork_area',
} );
work_area.append( {
type: 'textarea',
name: 'reason',
label: 'Reason:'
} );
break;
default:
work_area = new QuickForm.element( {
type: 'field',
label: 'CannotNothing befor movedanything',
name: 'work_area'
} );
work_area = work_area.appendrender( {);
old_area.parentNode.replaceChild( work_area, old_area );
type: 'textarea',
name: 'reason',
label: 'Reason:'
} );
break;
default:
work_area = new QuickForm.element( {
type: 'field',
label: 'Nothing for anything',
name: 'work_area'
} );
work_area = work_area.render();
old_area.parentNode.replaceChild( work_area, old_area );
break;