This commit is contained in:
Ross
2021-12-12 10:39:04 +00:00
parent cbe9665d3e
commit 95adacf265
+7
View File
@@ -14,7 +14,9 @@
</form>
</div>
<span id="manage-span">
{% render_table table %}
</span>
<details>
<summary><h3>Add/Edit CID users</h3></summary>
@@ -118,6 +120,10 @@
$("#add-new-cids").click((evt) => {
n = $("#add-number").get(0).value;
selected_cids = []
$("#manage-span input:checked").each((n, el) => {
selected_cids.push(el.value)
})
if (n < 1) {
toastr.info("You need to enter how many users to add.");
@@ -126,6 +132,7 @@
data = getGenericData();
data["number_to_create"] = n;
data["selected_cids"] = selected_cids;
postAjax(data);