forked from 0x2620/oxjs
change onload fade
This commit is contained in:
parent
0c5e61c678
commit
87cba1090c
2 changed files with 26 additions and 7 deletions
|
|
@ -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 = {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue