From 0d4db5b9780a810319fcc3726271142e8b15579f Mon Sep 17 00:00:00 2001 From: Jordie0608 Date: Mon, 17 Dec 2018 23:03:48 +1100 Subject: [PATCH] compatability for IE8's lack of css3 breaking panel checkboxes --- code/modules/admin/sql_ban_system.dm | 14 ++--- html/admin/banpanel.css | 81 +--------------------------- html/admin/banpanel_css3.css | 78 +++++++++++++++++++++++++++ 3 files changed, 87 insertions(+), 86 deletions(-) create mode 100644 html/admin/banpanel_css3.css diff --git a/code/modules/admin/sql_ban_system.dm b/code/modules/admin/sql_ban_system.dm index 2a3df8df7f4..5dc20a45d0a 100644 --- a/code/modules/admin/sql_ban_system.dm +++ b/code/modules/admin/sql_ban_system.dm @@ -87,7 +87,9 @@ panel_height = 240 var/datum/browser/panel = new(usr, "banpanel", "Banning Panel", 910, panel_height) panel.add_stylesheet("banpanelcss", 'html/admin/banpanel.css') - panel.add_script("banpaneljs", 'html/admin/banpanel.js') + if(usr.client.prefs.tgui_fancy) //some browsers (IE8) have trouble with unsupported css3 elements and DOM methods that break the panel's functionality, so we won't load those if a user is in no frills tgui mode since that's for similar compatability support + panel.add_stylesheet("banpanelcss3", 'html/admin/banpanel_css3.css') + panel.add_script("banpaneljs", 'html/admin/banpanel.js') var/list/output = list("
[HrefTokenFormField()]") output += {"