set initial value of dropdown

This commit is contained in:
Mark Yu 2025-07-13 16:36:51 -04:00
commit c57f39b605

View file

@ -36,7 +36,8 @@
inactiveSeedingTimeLimit: Number(origValues[2]), inactiveSeedingTimeLimit: Number(origValues[2]),
maxRatio: Number(origValues[3]), maxRatio: Number(origValues[3]),
maxSeedingTime: Number(origValues[4]), maxSeedingTime: Number(origValues[4]),
maxInactiveSeedingTime: Number(origValues[5]) maxInactiveSeedingTime: Number(origValues[5]),
shareLimitAction: Number(origValues[6])
}; };
// select default when orig values not passed. using double equals to compare string and int // select default when orig values not passed. using double equals to compare string and int
@ -65,6 +66,7 @@
document.getElementById("setInactiveMinutes").checked = true; document.getElementById("setInactiveMinutes").checked = true;
document.getElementById("inactiveMinutes").value = values.inactiveSeedingTimeLimit; document.getElementById("inactiveMinutes").value = values.inactiveSeedingTimeLimit;
} }
document.getElementById('actionList').value = values.shareLimitAction.toString();
} }
shareLimitChanged(); shareLimitChanged();