Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
User:Abel/PersonalData.js
(view source)
Revision as of 13:53, 27 May 2019
71 bytes added
,
5 years ago
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);
}
}
Abel
530
edits
Navigation menu
Personal tools
English
Log in
Request account
Namespaces
User page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
New Item
New Property
All items
All properties
All pages
Active Users
SAR service dev
Query Service
Maintenance
Administrator
Tools
User contributions
Logs
View user groups
Special pages
Printable version
Interaction
Community portal
WebXray
Recent changes
Contact Page
Telegram
Discourse forum
MyData Slack