1
0
Fork 0
forked from 0x2620/oxjs

change onload fade

This commit is contained in:
rolux 2010-09-06 02:56:18 +02:00
commit 87cba1090c
2 changed files with 26 additions and 7 deletions

View file

@ -216,10 +216,15 @@ requires
$.getJSON(self.options.config, function(data) {
var config = data;
that.request(self.options.init, getUserData(), function(data) {
Ox.print('!!!', data)
var user = data.data.user;
$(function() {
$('body').empty();
var $div = $body.find('div');
$body.find('img').remove();
$div.animate({
opacity: 0
}, 1000, function() {
$div.remove();
});
callback({
config: config,
user: user
@ -636,6 +641,9 @@ requires
Ox.Request = function() {
// fixme: do we want, instead of request('find', data, callback),
// something like server.find(data, callback)?
var cache = {},
pending = {},
requests = {},