From d7c4c3fb62282ecc781ec16e2033476c3462ae16 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 15 Aug 2016 18:24:09 +0200 Subject: [PATCH] Drop IE9 support --- CHANGELOG | 2 +- program/js/common.js | 9 +- skins/larry/includes/links.html | 1 - skins/larry/svggradient.php | 43 -------- skins/larry/svggradients.css | 185 -------------------------------- 5 files changed, 3 insertions(+), 237 deletions(-) delete mode 100644 skins/larry/svggradient.php delete mode 100644 skins/larry/svggradients.css diff --git a/CHANGELOG b/CHANGELOG index 99c004805..68f500602 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,7 +3,7 @@ CHANGELOG Roundcube Webmail - Dropped legacy browsers support - Removed legacy_browser plugin - - Removed hacks for IE < 9 + - Removed hacks for IE < 10 - Update to jQuery 3.1.0 and jQuery-UI 1.12.0 - compile .min.js files with ECMASCRIPT5 option - Require PHP >= 5.4 diff --git a/program/js/common.js b/program/js/common.js index 158f8ccda..9ed88fbf5 100644 --- a/program/js/common.js +++ b/program/js/common.js @@ -61,16 +61,11 @@ function roundcube_browser() this.webkit = this.agent_lc.indexOf('applewebkit') > 0; this.ie = (document.all && !window.opera) || (this.win && this.agent_lc.indexOf('trident/') > 0); - if (this.ie) { - this.ie7 = n.appVersion.indexOf('MSIE 7') > 0; - this.ie8 = n.appVersion.indexOf('MSIE 8') > 0; - this.ie9 = n.appVersion.indexOf('MSIE 9') > 0; - } - else if (window.opera) { + if (window.opera) { this.opera = true; // Opera < 15 this.vendver = opera.version(); } - else { + else if (!this.ie) { this.chrome = this.agent_lc.indexOf('chrome') > 0; this.opera = this.webkit && this.agent.indexOf(' OPR/') > 0; // Opera >= 15 this.safari = !this.chrome && !this.opera && (this.webkit || this.agent_lc.indexOf('safari') > 0); diff --git a/skins/larry/includes/links.html b/skins/larry/includes/links.html index a49e58826..99bd03f71 100644 --- a/skins/larry/includes/links.html +++ b/skins/larry/includes/links.html @@ -4,5 +4,4 @@ .css" /> - \ No newline at end of file diff --git a/skins/larry/svggradient.php b/skins/larry/svggradient.php deleted file mode 100644 index 8db2c5f63..000000000 --- a/skins/larry/svggradient.php +++ /dev/null @@ -1,43 +0,0 @@ - $stop) { - list($color, $offset) = explode(',', $stop); - if ($offset) - $offset = intval($offset); - else - $offset = $i == $last ? 100 : 0; - - $svg_stops .= ''; -} - -?> - - - spreadMethod="pad"> - - - - - diff --git a/skins/larry/svggradients.css b/skins/larry/svggradients.css deleted file mode 100644 index 2596f2bd2..000000000 --- a/skins/larry/svggradients.css +++ /dev/null @@ -1,185 +0,0 @@ -/** - * Roundcube webmail SVG-based gradients for IE 9 - * - * Copyright (c) 2012, The Roundcube Dev Team - * - * The contents are subject to the Creative Commons Attribution-ShareAlike - * License. It is allowed to copy, distribute, transmit and to adapt the work - * by keeping credits to the original autors in the README file. - * See http://creativecommons.org/licenses/by-sa/3.0/ for details. - */ - -input.button { - background-image: url(svggradient.php?c=f9f9f9;e6e6e6); -} - -.formbuttons input.button { - background-image: url(svggradient.php?c=7b7b7b;606060); -} - -.formbuttons input.button:active { - background-image: url(svggradient.php?c=5c5c5c;7b7b7b); -} - -input.button.mainaction { - background-image: url(svggradient.php?c=505050;2a2e31); -} - -input.button.mainaction:active { - background-image: url(svggradient.php?c=2a2e31;505050); -} - -a.button, -.buttongroup { - background-image: url(svggradient.php?c=f9f9f9;e6e6e6); -} - -a.button.pressed, -a.button:active, -input.button:active { - background-image: url(svggradient.php?c=e6e6e6;f9f9f9); -} - -.pagenav.dark a.button { - background-image: url(svggradient.php?c=d8d8d8;bababa); -} - -.pagenav.dark a.button.pressed { - background-image: url(svggradient.php?c=bababa;d8d8d8); -} - -.buttongroup a.button.selected { - background-image: url(svggradient.php?c=909090;858585); -} - -#message.statusbar { - background-image: url(svggradient.php?c=eaeaea;c8c8c8); -} - -#messagestack div { - background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzQwNDA0MCIgc3RvcC1vcGFjaXR5PSIwLjg4Ii8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMzMDMwMzAiIHN0b3Atb3BhY2l0eT0iMC44OCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); -} - -.ui-dialog.popupmessage .ui-dialog-titlebar { - background-image: url(svggradient.php?c=e3e3e3;cfcfcf); -} - -.ui-dialog.popupmessage .ui-widget-content { - background-image: url(svggradient.php?c=eeeeee;dcdcdc); -} - -#topnav { - background-image: url(svggradient.php?c=404040;060606); -} - -.records-table tr.selected td { - background-image: url(svggradient.php?c=019bc6;017cb4); -} - -.contentbox .boxtitle, -body.iframe .boxtitle { - background-image: url(svggradient.php?c=eeeeee;dfdfdf); -/* background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20preserveAspectRatio%3D%22none%22%20version%3D%221.0%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22mLG1%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%20spreadMethod%3D%22pad%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23eeeeee%22%20stop-opacity%3D%221%22/%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23dfdfdf%22%20stop-opacity%3D%221%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20style%3D%22fill%3Aurl%28%23mLG1%29%3B%22/%3E%3C/svg%3E);*/ -} - -#login-form input.button { - background-image: url(svggradient.php?c=f9f9f9;e2e2e2); -} - -#login-form input.button:active { - background-image: url(svggradient.php?c=dcdcdc;f9f9f9); -} - -.toolbar a.button { - filter: none; -} - -a.menuselector { - background-image: url(svggradient.php?c=f8f8f8;dddddd); -} - -a.menuselector:active { - background-image: url(svggradient.php?c=dddddd;f8f8f8); -} - -.googie_list td.googie_list_onhover, -ul.toolbarmenu li a.active:hover, -#rcmKSearchpane ul li.selected { - background-image: url(svggradient.php?c=00aad6;008fc9); -} - -.tabsbar .tablink { - background-image: url(svggradient.php?c=f8f8f8;d3d3d3,50;f8f8f8); - outline: none; -} - -.tabsbar .tablink.selected a { - background-image: url(svggradient.php?c=ffffff;efefef); - outline: none; -} - - -/*** addressbook.css ***/ - -.contactfieldgroup { - background-image: url(svggradient.php?c=f7f7f7;eeeeee); -} - -.contactfieldgroup legend { - background-image: url(svggradient.php?c=f0f0f0;d6d6d6); -} - - -/*** mail.css ***/ - -#mailboxlist li.mailbox .unreadcount { - background-image: url(svggradient.php?c=82acb5;6a939f); -} - -#mailboxlist li.mailbox.selected .unreadcount { - background-image: url(svggradient.php?c=005d76;004558); -} - -#messageheader, #partheader, #composeheaders { - background-image: url(svggradient.php?c=ffffff;f0f0f0); -} - -.moreheaderstoggle { - background-image: url(svggradient.php?c=fbfbfb;e9e9e9&h=1); -} - -#messagelistfooter { - background-image: url(svggradient.php?c=ebebeb;c6c6c6); -} - -/*** jqueryui theme ***/ - -.ui-menu .ui-menu-item a.ui-state-hover, -.ui-menu .ui-menu-item a.ui-state-active { - background-image: url(svggradient.php?c=00aad6;008fc9) !important; -} - -.ui-button.ui-state-default { - background-image: url(svggradient.php?c=f9f9f9;e6e6e6) !important; -} - -.ui-button.ui-state-active { - background-image: url(svggradient.php?c=e6e6e6;f9f9f9) !important; -} - -.ui-tabs .ui-tabs-nav li { - background-image: url(svggradient.php?c=f8f8f8;d3d3d3,50;d3d3d3) !important; -} - -.ui-tabs .ui-tabs-nav li.ui-tabs-selected a { - background-image: url(svggradient.php?c=fafafa,40;e4e4e4) !important; -} - -.ui-datepicker td a.ui-state-default { - background-image: url(svggradient.php?c=e6e6e6;d6d6d6) !important; -} - -.ui-datepicker td a.ui-state-active { - background-image: url(svggradient.php?c=00acd4;008fc7) !important; -} -