use jQuery to get .animate

This commit is contained in:
rlx 2014-09-25 19:42:11 +02:00
parent ae8ee195a1
commit 1e845092c4

View file

@ -90,7 +90,7 @@ Ox.load.UI = function(options, callback) {
MozUserSelect: 'none',
WebkitUserSelect: 'none'
},
loadingInterval
loadingInterval;
browserSupported ? showIcon() : showWarning();
@ -205,7 +205,7 @@ Ox.load.UI = function(options, callback) {
return {
hide: function() {
$screen.animate({
$('.OxLoadingScreen').animate({
opacity: browserSupported ? 0 : 0.9
}, 1000, function() {
if (browserSupported) {
@ -271,11 +271,6 @@ Ox.load.UI = function(options, callback) {
function initUI() {
Ox.documentReady(function() {
// FIXME: use Ox.$foo everywhere!
Ox.$body = Ox.UI.$body = $('body');
Ox.$document = Ox.UI.$document = $(document);
Ox.$head = Ox.UI.$head = $('head');
Ox.$window = Ox.UI.$window = $(window);
// fixme: is this the right place to do this?
$.browser.mozilla && Ox.$document.on('dragstart', function() {
return false;