Make populateGroupList compatible with IE/Edge

This commit is contained in:
Neil Brommer 2018-01-02 20:27:47 -08:00
parent a83d415f48
commit 42c0982a48

View file

@ -16,17 +16,16 @@ function populateGroupList() {
var db = openEvt.target.result;
var groupsStore = db.transaction("Groups", "readwrite").objectStore("Groups");
groupsStore.getAll().onsuccess = function (getAllEvt) {
var groups = getAllEvt.target.result;
for (let group of groups) {
groupsStore.openCursor().onsuccess = function (cursorEvt) {
var cursor = cursorEvt.target.result;
if (cursor) {
var group = cursor.value;
combo.append($("<option>")
.attr({ "value": group.groupIndex })
.text(group.title));
}
$("#createGroup").prop("required", true);
db.close();
cursor.continue();
}
}
}