diff --git a/code/modules/admin/sql_ban_system.dm b/code/modules/admin/sql_ban_system.dm index 82816b5da25..58672366631 100644 --- a/code/modules/admin/sql_ban_system.dm +++ b/code/modules/admin/sql_ban_system.dm @@ -280,7 +280,8 @@ for(var/datum/job_department/department as anything in SSjob.joinable_departments) var/label_class = department.label_class var/department_name = department.department_name - output += "
" + output += "
" for(var/datum/job/job_datum as anything in department.department_jobs) if(break_counter > 0 && (break_counter % 3 == 0)) output += "
" @@ -307,7 +308,7 @@ "Abstract" = list("Appearance", "Emote", "Deadchat", "OOC"), ) for(var/department in other_job_lists) - output += "
" + output += "
" break_counter = 0 for(var/job in other_job_lists[department]) if(break_counter > 0 && (break_counter % 3 == 0)) @@ -362,7 +363,7 @@ ),//SKYRAT EDIT ADDITION - EXTRA_BANS ) for(var/department in long_job_lists) - output += "
" + output += "
" break_counter = 0 for(var/job in long_job_lists[department]) if(break_counter > 0 && (break_counter % 10 == 0)) diff --git a/html/admin/banpanel.js b/html/admin/banpanel.js index 3352617c5ab..e481cd2fc2a 100644 --- a/html/admin/banpanel.js +++ b/html/admin/banpanel.js @@ -8,3 +8,12 @@ function toggle_other_checkboxes(source, copycats_str, our_index_str) { document.getElementById(source.id.slice(0, -1) + i).checked = source.checked; } } + +function header_click_all_checkboxes(source) { + var checkboxes = document.getElementsByClassName(source.name); + for(var i = 0, n = checkboxes.length; i < n; i++) { + if(checkboxes[i].checked != source.checked && checkboxes[i] != source) { + checkboxes[i].click(); + } + } +}