Line 105: |
Line 105: |
| person = prs; | | person = prs; |
| } | | } |
− | console.log( prs ); | + | console.log( person ); |
| | | |
| // var data = interjson( get_Y_from_X( mw, mwEStruct['wbXntity'] ) ); // wbEntity as json obj | | // var data = interjson( get_Y_from_X( mw, mwEStruct['wbXntity'] ) ); // wbEntity as json obj |
Line 135: |
Line 135: |
| }); | | }); |
| | | |
− | $( '#mw-content-text' ).prepend( textInput[i].$element );
| |
| | | |
| button_new[i].on( 'click', function () { | | button_new[i].on( 'click', function () { |
| | | |
| // new | | // new |
− | recordUpdate( db, person, rel_C + '.' + ii , ''); | + | recordUpdate( db, person, rel_C + '.' + ii , '' ); |
| interface_media( db, person, rel_A, rel_B, rel_C ); | | interface_media( db, person, rel_A, rel_B, rel_C ); |
| return; | | return; |
Line 164: |
Line 163: |
| $( '#mw-content-text' ).prepend( button_delete[i].$element ); | | $( '#mw-content-text' ).prepend( button_delete[i].$element ); |
| $( '#mw-content-text' ).prepend( button_save[i].$element ); | | $( '#mw-content-text' ).prepend( button_save[i].$element ); |
| + | $( '#mw-content-text' ).prepend( textInput[i].$element ); |
| $( '#mw-content-text' ).prepend( '<br>' ); | | $( '#mw-content-text' ).prepend( '<br>' ); |
| | | |
Line 300: |
Line 300: |
| // Otherwise all other fields of the record object are disregarded | | // Otherwise all other fields of the record object are disregarded |
| function recordUpdate( pddbname, record, field, value ) { | | function recordUpdate( pddbname, record, field, value ) { |
− | console.log("Add " + pddbname + '@' + record.user.name + ":" + field + '/w:' + value); | + | console.log("Add " + pddbname + '@' + record.name.user + ":" + field + '/w:' + value); |
| var pddb = window.indexedDB.open(pddbname, 3); | | var pddb = window.indexedDB.open(pddbname, 3); |
| pddb.onupgradeneeded = function() { | | pddb.onupgradeneeded = function() { |