Skip to content

Commit

Permalink
fix radio button disabling not working when switching positions of pl…
Browse files Browse the repository at this point in the history
…aced objects
  • Loading branch information
Berny23 committed Oct 2, 2021
1 parent 43634a5 commit 4c93343
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ <h2>Currently Placed</h2>
$('html').find("input").not('#remove-all').prop('disabled', true);
setTimeout(function() {
$('html').find("input").not('#remove-all').prop('disabled', false);
checkPositionLimits();
}, 2000);

$.ajax({
Expand All @@ -248,15 +249,15 @@ <h2>Currently Placed</h2>
contentType: 'application/json',
url: '/character',
data: JSON.stringify({ id: filterByName(characters, name).id, position: position, index: index, uid: uid })
}).done(function() { checkPositionLimits(); });
});
break;
case "vehicle":
$.ajax({
method: 'PUT',
contentType: 'application/json',
url: '/vehicle',
data: JSON.stringify({ id: filterByName(vehicles, name).id, position: position, index: index, uid: uid })
}).done(function() { checkPositionLimits(); });
});
break;
}
}, 500);
Expand Down

0 comments on commit 4c93343

Please sign in to comment.