mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk web) move ie specific stylesheet logic into the html to prevent a js race condition
This commit is contained in:
@@ -33,14 +33,20 @@ function testSafari3()
|
||||
};
|
||||
|
||||
$(document).ready( function() {
|
||||
// Initialise a torrent controller to handle events
|
||||
|
||||
// Initialise the dialog controller
|
||||
dialog = new Dialog();
|
||||
|
||||
// Initialise the main Transmission controller
|
||||
transmission = new Transmission();
|
||||
|
||||
// IE specific fixes here
|
||||
if ($.browser.msie) {
|
||||
try {
|
||||
document.execCommand("BackgroundImageCache", false, true);
|
||||
} catch(err) {}
|
||||
$('.dialog_container').css('height',$(window).height()+'px');
|
||||
}
|
||||
|
||||
if ($.browser.safari) {
|
||||
// Move search field's margin down for the styled input
|
||||
$('#torrent_search').css('margin-top', 3);
|
||||
|
||||
@@ -20,16 +20,6 @@ Transmission.prototype =
|
||||
|
||||
initialize: function()
|
||||
{
|
||||
// IE specific fixes here
|
||||
if ($.browser.msie) {
|
||||
try {
|
||||
document.execCommand("BackgroundImageCache", false, true);
|
||||
} catch(err) {}
|
||||
$('head').append('<link media="screen" href="./stylesheets/common.css" type="text/css" rel="stylesheet" />');
|
||||
$('head').append('<link media="screen" href="./stylesheets/ie'+$.browser.version.substr(0,1)+'.css" type="text/css" rel="stylesheet" />');
|
||||
$('.dialog_container').css('height',$(window).height()+'px');
|
||||
}
|
||||
|
||||
// Initialize the helper classes
|
||||
this.remote = new TransmissionRemote(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user