Changes

Jump to navigation Jump to search
m
no edit summary
Line 59: Line 59:  
function Enquire( pddbname, record, sqitch, control_1, control_2, control_3 ) {
 
function Enquire( pddbname, record, sqitch, control_1, control_2, control_3 ) {
 
var pddb = window.indexedDB.open(pddbname, 3);
 
var pddb = window.indexedDB.open(pddbname, 3);
 +
var inp_obj;
 
pddb.onupgradeneeded = function() {
 
pddb.onupgradeneeded = function() {
 
var db = pddb.result;
 
var db = pddb.result;
Line 75: Line 76:  
// Get the original record from the db...
 
// Get the original record from the db...
 
var getRecord = index.get([record.id]);
 
var getRecord = index.get([record.id]);
var inp_obj;
      
getRecord.onsuccess = function() {
 
getRecord.onsuccess = function() {
Line 156: Line 156:     
}
 
}
 +
console.log("return 3")
 +
return inp_obj;
    
};
 
};
 +
console.log("return 2")
 +
return inp_obj;
    
};
 
};
    
tx.oncomplete = function() {
 
tx.oncomplete = function() {
 +
console.log("return 1")
 
db.close();
 
db.close();
 
return inp_obj;
 
return inp_obj;
 
};
 
};
 
};
 
};
 +
console.log("return 0")
 +
return inp_obj;
 
};
 
};
 
};
 
};
530

edits

Navigation menu