Line 54: |
Line 54: |
| | | |
| button_save[ extrafield ].on( 'click', function () { | | button_save[ extrafield ].on( 'click', function () { |
− | console.log( "this is happening " + orig + ' ' + extrafield); | + | console.log( "this is happening " + orig + ' :: ' + extrafield); |
| + | console.log( "textInput[ extrafield ].$element.value" + textInput[ extrafield ].$element.value ); |
| + | console.log( "textInput[ extrafield ].$element.val()" + textInput[ extrafield ].$element.val() ); |
| + | console.log( "textInput[ extrafield ].$element.getValue()" + textInput[ extrafield ].$element.getValue() ); |
| + | |
| + | console.log( "textInput[ extrafield ].value" + textInput[ extrafield ].value ); |
| + | console.log( "textInput[ extrafield ].val()" + textInput[ extrafield ].val() ); |
| + | console.log( "textInput[ extrafield ].getValue()" + textInput[ extrafield ].getValue() ); |
| + | |
| idxb.EnqueuePDIO('update record', orig, extrafield, textInput[ extrafield ].$element.value ) | | idxb.EnqueuePDIO('update record', orig, extrafield, textInput[ extrafield ].$element.value ) |
| }); | | }); |
Line 76: |
Line 84: |
| } ); | | } ); |
| button_save[data].on( 'click', function () { | | button_save[data].on( 'click', function () { |
− | idxb.EnqueuePDIO('update record', orig, data, 'holdplace') | + | idxb.EnqueuePDIO('update record', orig, data, textInput[ data ].$element.value ) |
| }); | | }); |
| $( '#mw-content-text' ).prepend( textInput[data].$element ); | | $( '#mw-content-text' ).prepend( textInput[data].$element ); |