(trunk web) move ie specific stylesheet logic into the html to prevent a js race condition

This commit is contained in:
Kevin Glowacz
2009-05-31 17:05:22 +00:00
parent 422938e06c
commit 4193f2b201
3 changed files with 11 additions and 12 deletions

View File

@@ -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);