Changes

Jump to navigation Jump to search
m
no edit summary
Line 98: Line 98:  
debuglog(xy);
 
debuglog(xy);
 
var db = pddb.result;
 
var db = pddb.result;
var tx = db.transaction(pddbname, "readwrite");
+
var tx = db.transaction([pddbname], "readwrite");
 
var store = tx.objectStore(pddbname);
 
var store = tx.objectStore(pddbname);
 
var index = store.index("NameIndex");
 
var index = store.index("NameIndex");
    
// 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);
    
getRecord.onsuccess = function() {
 
getRecord.onsuccess = function() {
Line 222: Line 222:  
}
 
}
 
}
 
}
 +
debuglog("putting object to store:");
 +
debuglog(inp_obj);
 
store.put(inp_obj);
 
store.put(inp_obj);
 
}
 
}
530

edits

Navigation menu