mirror of
https://github.com/myvesta/vesta
synced 2025-07-16 10:03:23 -07:00
[js, php] permsions fixes, date format
This commit is contained in:
parent
0e0d6b6656
commit
5c87dfb2dd
14 changed files with 1356 additions and 147 deletions
|
@ -4,14 +4,27 @@ App.Pages.init = function()
|
|||
App.Ajax.request('MAIN.getInitial', {}, function(reply) {
|
||||
App.Env.initialParams = reply.data;
|
||||
App.Helpers.updateInitial();
|
||||
if (!App.Env.initialParams.auth_user.admin) {
|
||||
});
|
||||
|
||||
|
||||
/*
|
||||
if (!App.Env.initialParams.auth_user.admin) {
|
||||
var head= document.getElementsByTagName('head')[0];
|
||||
var script= document.createElement('script');
|
||||
script.type= 'text/javascript';
|
||||
script.src= App.Helpers.generateUrl('js/user_templates.js?'+Math.random());
|
||||
head.appendChild(script);
|
||||
}
|
||||
});
|
||||
}
|
||||
else{
|
||||
var head= document.getElementsByTagName('head')[0];
|
||||
var script= document.createElement('script');
|
||||
script.type= 'text/javascript';
|
||||
script.src= App.Helpers.generateUrl('js/templates.js?'+Math.random());
|
||||
head.appendChild(script);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
App.Pages.prepareHTML();
|
||||
|
@ -45,6 +58,8 @@ App.Pages.prepareHTML = function()
|
|||
|
||||
App.Pages.DNS.showSubform = function(ref)
|
||||
{
|
||||
fb.log('loading');
|
||||
return;
|
||||
App.Helpers.showLoading();
|
||||
var data = ref.find('.source:first').val();
|
||||
App.Ajax.request('DNS.getListRecords', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue