fix: added check for selected items (#58)
This commit is contained in:
@@ -571,18 +571,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
showProgress();
|
if (remapCallCounterMax > 0) {
|
||||||
|
showProgress();
|
||||||
|
|
||||||
for (var i = 0; i < rom_checks.length; i++) {
|
for (var i = 0; i < rom_checks.length; i++) {
|
||||||
if (rom_checks[i].checked == true) {
|
if (rom_checks[i].checked == true) {
|
||||||
var romId = rom_checks[i].getAttribute('data-romid');
|
var romId = rom_checks[i].getAttribute('data-romid');
|
||||||
remapCallCounter += 1;
|
remapCallCounter += 1;
|
||||||
|
|
||||||
ajaxCall('/api/v1/Games/' + gameId + '/roms/' + romId + '?NewPlatformId=' + fixplatform[0].id + '&NewGameId=' + fixgame[0].id, 'PATCH', function (result) {
|
ajaxCall('/api/v1/Games/' + gameId + '/roms/' + romId + '?NewPlatformId=' + fixplatform[0].id + '&NewGameId=' + fixgame[0].id, 'PATCH', function (result) {
|
||||||
remapTitlesCallback();
|
remapTitlesCallback();
|
||||||
}, function (result) {
|
}, function (result) {
|
||||||
remapTitlesCallback();
|
remapTitlesCallback();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user