From 4762a36eb64ea754efc05ca1394df4bac07c4a5f Mon Sep 17 00:00:00 2001 From: Taka Date: Fri, 29 Jul 2022 14:58:43 +1000 Subject: [PATCH] Removed code supporting Internet Explorer. --- vasl_templates/webapp/static/main.js | 8 -------- vasl_templates/webapp/static/utils.js | 16 ---------------- vasl_templates/webapp/tests/test_ob.py | 4 ++-- vasl_templates/webapp/tests/test_snippets.py | 4 ++-- vasl_templates/webapp/tests/test_ssr.py | 4 ++-- vasl_templates/webapp/tests/utils.py | 16 ---------------- 6 files changed, 6 insertions(+), 46 deletions(-) diff --git a/vasl_templates/webapp/static/main.js b/vasl_templates/webapp/static/main.js index 7fcc819..3cbf6e3 100644 --- a/vasl_templates/webapp/static/main.js +++ b/vasl_templates/webapp/static/main.js @@ -385,12 +385,6 @@ $(document).ready( function () { prevHeight[id] = h ; } } ) ; - // FUDGE! Some panels are rendering with the wrong width in IE :-/ - if ( isIE() ) { - var set_width = function($elem) { $elem.width( $elem.parent().width() ) ; } ; - set_width( $("#panel-vc textarea") ) ; - set_width( $("#panel-ssr .content") ) ; - } } ) ; $(window).trigger( "resize" ) ; @@ -785,8 +779,6 @@ function update_page_load_status( id ) // FUDGE! This works around a timing problem during startup, where we unload the current parameters // before the Victory Conditions Trumbowyg control has initialized (and so doesn't get included). gLastSavedScenario = unload_params_for_save( false ) ; - // NOTE: The watermark image appears briefly in IE when reloading the page, but not even - // creating the watermark dynamically and removing it when the page unloads fixes it :-( $("#watermark").fadeIn( 5*1000 ) ; // notify the test suite $("body").append( $("
") ) ; diff --git a/vasl_templates/webapp/static/utils.js b/vasl_templates/webapp/static/utils.js index 4b62859..1e982cf 100644 --- a/vasl_templates/webapp/static/utils.js +++ b/vasl_templates/webapp/static/utils.js @@ -124,12 +124,6 @@ function copyToClipboard( val ) return ; } - // IE-specific code path to prevent textarea being shown while dialog is visible - if ( window.clipboardData && window.clipboardData.setData ) { - clipboardData.setData( "Text", val ) ; - return ; - } - // FUDGE! If a dialog is open, the overlay will stop the copy command from working, // so we attach the