Line 55: |
Line 55: |
| 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 ].value" + textInput[ extrafield ].value ); | | 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 83: |
Line 79: |
| } ); | | } ); |
| button_save[data].on( 'click', function () { | | button_save[data].on( 'click', function () { |
− | idxb.EnqueuePDIO('update record', orig, data, textInput[ data ].$element.value ) | + | console.log( "this is happening " + orig + ' :: ' + data); |
| + | |
| + | console.log( "textInput[ extrafield ].value" + textInput[ data ].value ); |
| + | |
| + | idxb.EnqueuePDIO('update record', orig, data, textInput[ data ].value ) |
| }); | | }); |
| $( '#mw-content-text' ).prepend( textInput[data].$element ); | | $( '#mw-content-text' ).prepend( textInput[data].$element ); |