use init request instead of site config
This commit is contained in:
parent
a24af97c0a
commit
252c9a3303
1 changed files with 33 additions and 36 deletions
|
@ -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() {});
|
||||
|
|
Loading…
Reference in a new issue