Line 43: |
Line 43: |
| var extrafield = ( result[orig] != undefined ) ? Object.keys(result[orig]).length : 0; | | var extrafield = ( result[orig] != undefined ) ? Object.keys(result[orig]).length : 0; |
| | | |
− | button_save[ extrafield ] = new OO.ui.ButtonWidget( { label: "Save", classes: "pddh" } ); | + | button_save[ extrafield ] = new OO.ui.ButtonWidget( { label: "Save", classes: [ 'pddh' ] } ); |
| textInput[ extrafield ] = new OO.ui.TextInputWidget( { | | textInput[ extrafield ] = new OO.ui.TextInputWidget( { |
| placeholder: plch, | | placeholder: plch, |
− | classes: "pddh" | + | classes: [ 'pddh' ] |
| } ); | | } ); |
| button_save[ extrafield ].onClick = function () { | | button_save[ extrafield ].onClick = function () { |
Line 60: |
Line 60: |
| Object.keys( result[orig] ).forEach( function(data) { | | Object.keys( result[orig] ).forEach( function(data) { |
| | | |
− | button_save[data] = new OO.ui.ButtonWidget( { label: "Save", classes: "pddh" } ); | + | button_save[data] = new OO.ui.ButtonWidget( { label: "Save", classes: [ 'pddh' ] } ); |
− | button_delete[data] = new OO.ui.ButtonWidget( { label: "Delete", classes: "pddh" } ); | + | button_delete[data] = new OO.ui.ButtonWidget( { label: "Delete", classes: [ 'pddh' ] } ); |
| textInput[data] = new OO.ui.TextInputWidget( { | | textInput[data] = new OO.ui.TextInputWidget( { |
| value: q[orig][data], /// | | value: q[orig][data], /// |
| placeholder: plch, | | placeholder: plch, |
− | classes: "pddh" | + | classes: [ 'pddh' ] |
| } ); | | } ); |
| button_save[data].onClick = function () { | | button_save[data].onClick = function () { |