forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.js
More file actions
44 lines (38 loc) · 1.28 KB
/
Copy path__init__.js
File metadata and controls
44 lines (38 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
App.Ajax.request('MAIN.about', {}, function(reply) {
if (reply) {
App.Settings.VestaAbout.company_name = reply.data.company_name;
App.Settings.VestaAbout.company_email = reply.data.company_email;
App.Settings.VestaAbout.version = reply.data.version;
App.Settings.VestaAbout.version_name = reply.data.version_name;
}
});
$('document').ready(function() {
try {
App.Utils.detectBrowser();
App.Ref.init();
//App.Env.world = 'USER';
// Disabled cookie tab restoring. Enable if needed
if ('undefined' != typeof App.Tmp.loadTAB) {
App.Env.world = App.Tmp.loadTAB;
}
if ('undefined' == typeof App.Tmp.loadTAB && cookieEnabled()) {
var tab = getCookie('tab');
if (null != tab && $.inArray(tab, App.Constants.TABS)) {
App.Env.world = tab;
}
else {
App.Env.world = App.Constants.TABS[0];
}
}
App.Pages.init();
App.Core.listen();
App.Core.initMenu();
App.Helpers.liveValidate();
$(document).bind('submit', function(evt) {
evt.preventDefault();
});
}
catch(e) {
fb.error(e);
}
});