From bb0f9d9ad13a28029c9e115ee735b305403b4155 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 19 Feb 2009 23:02:22 +0000 Subject: [PATCH] (trunk) #1602 Internet Explorer 6 & 7 Support in WebUI --- web/images/graphics/browser_firefox.gif | Bin 1121 -> 0 bytes web/images/graphics/browser_opera.gif | Bin 1082 -> 0 bytes web/images/graphics/browser_safari.gif | Bin 1175 -> 0 bytes web/index.html | 12 ------- web/javascript/transmission.js | 13 ++++--- web/stylesheets/common.css | 46 ------------------------ web/stylesheets/ie6.css | 16 +++++++++ web/stylesheets/ie7.css | 13 +++++++ 8 files changed, 37 insertions(+), 63 deletions(-) delete mode 100644 web/images/graphics/browser_firefox.gif delete mode 100644 web/images/graphics/browser_opera.gif delete mode 100644 web/images/graphics/browser_safari.gif create mode 100644 web/stylesheets/ie6.css create mode 100644 web/stylesheets/ie7.css diff --git a/web/images/graphics/browser_firefox.gif b/web/images/graphics/browser_firefox.gif deleted file mode 100644 index 2c5286864732e6f33ee949161679506fd69d9d7b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1121 zcmV-n1fKgxNk%w1VI2S<0OkMy`p^S=%I=YMNR-m;o>3=HlF9U|0n<$fW{;l!{0RQ~ zY61Z$PZbbq!0F+78Fp)HRHM}2bQZF*vdlLJu#+4wda=HrgRA-frj>9-aj~=w1^?F} z=7SdOcpCWl`2Y4w|Mn~Xi5J+|*qfipYqZ<*v`sc(s5e-6?O6x-mj(Q`AL;4o%$PbK zn%bzGi~hwznu2uMYy{zoMgl9CC2PI9CGwWynWRyh(#gW`fFDpr^qTDJfPNce07-(LsPsdH;oQ3`6ae0qQP*mF@jU5gC^ z(o`e*o;UB7E8T4ni!CKJXpYj+&;lh^`I!@wr>m8ai7zvE|Bnj<4RS<*!0?PB`)>eK zW|3ZdwwA)Y#dJjHjUBOUA^8LV00000EC2ui z0384z000O7fPaF6goTEOh>41ejE#mmBVrknVk0_^gk~8P5Dga>0SypKL?e!QVoMDJ ztZ=TZV+eIjmxpmle`ZB30ikvz1Fiui2wD_p6hMa-FIqE8Ee%;EJZ!AP5CsA(8z39X zg=Bs*OiWoATsc*%1qBTa0abkzAPO6AdxQjjQT;z)VCwJ^MIuxH2saim0FVGc8+{>c z*oY9r1`;X-NI)P#f(;uI4ZIMUu>$~r7ghvW=`dwtga{5IXwZOyj2Dj(DtLjAjYygl zAHccs;~?hC2vZ2ii4ufUg#tuwcq!lo!5SfXQcAoC!nPfeD>njrDY6BC0tEmpSU>^uB?kv;(y+il!;57vYOesE zLBy~E0~lN!uo07knkO0<+&Gb;bq36uuPo>@$3TJ&DqO%g@EGQkCli7cDPm&y@V`cq z!`P6b;S1dpiaMB5qsD{|Fie;T1A|8vBFPsR(el9n01!=p=+Q9cv4aB>4j|$3WylvU zTwe59z~2al&ju*KLrPSjP{t51p@0GsH5>rO5lAq=Uw=-VkpLDipdo+Zu zgh_z}g=nDx9va91#RN{a#K9N!Ie-Kb3?*Q|9UK<&Kn*=;0EGrMKmmmsNKK)s4;Ct_ zL>!3R@kFFE&1BsK@x_pXd1>q*LLwe8fm#o=mTKJrN8m@m9Vsm$ff5YN+5;YV#7967 nN@THuBOd6%gc3VM8|@uTNU$s>f_Sik6*zP&!U~Nd5(of0_>j+6 diff --git a/web/images/graphics/browser_opera.gif b/web/images/graphics/browser_opera.gif deleted file mode 100644 index f05693e0c2812bb19ec511a65cd6891c6ac80555..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1082 zcmV-A1jYMDNk%w1VITk?0OkMyva`zj`ufkXv7DW^{O0G98XW)E+WdHW_{GPiCn=;G z9h)K~Z3PCati!9c#N1R?*4N_xtF3laRcB{N~AbCj1?B>nwrqe%)A6^j> zq@=g+@AB79P{DV1%q}m%JwNyN`261A|88;r&(fcXqv+`9d=C+u4-TLb6aVh)gp#R_ zjjsQVknPFJ&cDO2YHQ3+Q0ZM@?t+BcU0}kEj-Rc>|M>WRfq|~2y6y1x*4O#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>ai-231`JFP0Cz+#~jSUJ|U_>y{VFQ%}K?Hz!BH^%?0&vKXaj|0x5*Ky? z*f_981C0SYguj5`t3@9W2)w*-!I+GSKNzh1d9o!#nFSe~ICw>f)o#|@kb2{T=2sMRyd)C1ssTxgdiLtU_k;*g7=%zlVt_%64l4Yhz@-Yv@#+sMEb#{dq=L4}LLz`s*p~*-pvABT7?8#v zOVB~;M+cos2N(yWfXpE}a3I0~U_{mIB1A%afF2-_62l%>(4j}2A`r9fuDy8+h6p0) p0k0kdxwGyhgGg}281jlBMhXH9Veh@#3^IZQMo2IMA(jLJ06RX>1$+Pi diff --git a/web/index.html b/web/index.html index d76e8d0c9..cba594ae6 100755 --- a/web/index.html +++ b/web/index.html @@ -30,7 +30,6 @@
  • -
  •  
  •  
  • @@ -332,17 +331,6 @@
- -
    diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index 57ffc7b88..924f24678 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -20,11 +20,14 @@ Transmission.prototype = initialize: function() { - // Before we do anything, browser compatability test + // IE specific fixes here if ($.browser.msie) { - $('div.torrent_footer').hide(); - $('div#unsupported_browser').show(); - return; + try { + document.execCommand("BackgroundImageCache", false, true); + } catch(err) {} + $('head').append(''); + $('head').append(''); + $('.dialog_container').css('height',$(window).height()+'px'); } // Initialize the helper classes @@ -1032,7 +1035,7 @@ Transmission.prototype = }, showFilter: function( ) { - var container_top = parseInt($('#torrent_container').css('top')) + $('#torrent_filter_bar').height() + 1; + var container_top = parseInt($('#torrent_container').position().top) + $('#torrent_filter_bar').height() + 1; $('#torrent_container').css('top', container_top + 'px'); $('#torrent_filter_bar').show(); this.setPref( Prefs._ShowFilter, true ); diff --git a/web/stylesheets/common.css b/web/stylesheets/common.css index 4b346f869..1b0ddb08c 100644 --- a/web/stylesheets/common.css +++ b/web/stylesheets/common.css @@ -847,52 +847,6 @@ div#prefs_container div#pref_error { background-color: #FFEFEF; } -/*-------------------------------------- - * - * U N S U P P O R T E D B R O W S E R - * - *--------------------------------------*/ - -div#unsupported_browser { - position: absolute; - top: 0px; - left: 0px; - margin: 0px; - width: 100%; - height: 100%; - z-index: 3; - text-align: center; - background: #fff; -} - -div#unsupported_browser div.dialog_window { - position: relative; - top: 150px; - width: 450px; - height: 250px; - margin: 0 auto; - border: 1px solid #979797; -} - -div#unsupported_browser div.dialog_window img { - margin: 10px; -} - -div#unsupported_browser div.dialog_window img.logo { - display: block; - margin: 20px auto 0; -} - -div#unsupported_browser div.dialog_window h2 { - margin: 40px auto 0; - width: 305px; -} - -div#unsupported_browser div.dialog_window p { - clear: both; - font-size: 1.4em; -} - /*-------------------------------------- * * T R A N S M E N U diff --git a/web/stylesheets/ie6.css b/web/stylesheets/ie6.css new file mode 100644 index 000000000..6c6b62817 --- /dev/null +++ b/web/stylesheets/ie6.css @@ -0,0 +1,16 @@ +div.torrent_global_menu ul li { + width: 60px; +} +div#torrent_filter_bar ul li { + width: 100px; +} +div.torrent_footer { + position: static; +} +div#torrent_container { + position: static; + top: 97px; +} +div#torrent_inspector { + position: absolute; +} diff --git a/web/stylesheets/ie7.css b/web/stylesheets/ie7.css new file mode 100644 index 000000000..87ff7d7bb --- /dev/null +++ b/web/stylesheets/ie7.css @@ -0,0 +1,13 @@ +div.torrent_global_menu ul li { + width: 100px; +} +div#torrent_container { + overflow-x: hidden; +} +div#torrent_container ul li { + padding-right: 40px; +} +li.torrent a div { + right: -2px; + top: -12px; +}