Dynamic modals: codesmell

This commit is contained in:
Marcus Hill
2023-04-09 20:14:15 +01:00
parent bdf74e77ba
commit 5f79931787
2 changed files with 4 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ function populateQuoteEditModal(quote_id) {
// Clear Category dropdown
var i, L = categoryDropdown.options.length -1;
for(i = L; i >= 0; i--) {
for (i = L; i >= 0; i--) {
categoryDropdown.remove(i);
}
categoryDropdown[categoryDropdown.length] = new Option('- Category -', '0');