use init request instead of site config

This commit is contained in:
j 2011-01-23 00:59:30 +05:30
parent a24af97c0a
commit 252c9a3303

View file

@ -222,10 +222,6 @@ requires
});
userAgents.indexOf(userAgent) > -1 ? start() : stop();
function start() {
$.getJSON(self.options.config, function(data) {
var config = data;
//Ox.print('config', config);
document.title = config.site.name;
loadImages(function() {
that.api.api(function(result) {
$.each(result.data.actions, function(key, value) {
@ -245,7 +241,9 @@ requires
};
});
that.api[self.options.init](getUserData(), function(data) {
var user = data.data.user;
var user = data.data.user,
config = data.data.config;
document.title = config.site.name;
$(function() {
var $div = $body.find('div');
$body.find('img').remove();
@ -262,7 +260,6 @@ requires
});
});
});
});
}
function stop() {
that.request.send(self.options.init, getUserData(), function() {});