mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
* remove unnessesary file * prepared debug view with logic * typo * add additional case * moved Maintenance Page to Debug * copy function * comment * html file for eqsl card images folder * only copy files if they have a qso_id in db * not_assigned folder * xss_clean * $CI to $this * removed status field, no need for that * class wide variabled to reduce redundancy * adjusted view * allow run migration agn * missing case if user_id is also empty (deleted user/qso) * just commented * only allow jpg, png and gif (same as in upload)
47 lines
1.0 KiB
JavaScript
47 lines
1.0 KiB
JavaScript
function reassign(call, target_profile_id) {
|
|
let qsoids = [];
|
|
let elements = document.getElementsByName("cBox[]");
|
|
elements.forEach((item) => {
|
|
if (item.checked) {
|
|
qsoids.push(item.value);
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: base_url + "index.php/debug/reassign",
|
|
type: "post",
|
|
data: { call: call, station_id: target_profile_id, qsoids: qsoids },
|
|
success: function (resu) {
|
|
if (resu.status) {
|
|
location.reload();
|
|
}
|
|
},
|
|
});
|
|
}
|
|
|
|
function toggleAll(source) {
|
|
if (source.checked) {
|
|
let elements = document.getElementsByName("cBox[]");
|
|
elements.forEach((item) => {
|
|
item.checked = true;
|
|
});
|
|
source.checked = true;
|
|
}
|
|
if (!source.checked) {
|
|
let elements = document.getElementsByName("cBox[]");
|
|
elements.forEach((item) => {
|
|
item.checked = false;
|
|
});
|
|
source.checked = false;
|
|
}
|
|
}
|
|
|
|
function updateCallsign(item) {
|
|
let text = item.options[item.selectedIndex].text;
|
|
let call = text.substr(
|
|
text.lastIndexOf("(") + 1,
|
|
text.lastIndexOf(")") - text.lastIndexOf("(") - 1
|
|
);
|
|
document.getElementById("station_call").innerHTML = call;
|
|
}
|
|
|