mirror of
https://github.com/myvesta/vesta
synced 2025-07-11 15:46:43 -07:00
Tab switching "x records" message is resetting from now on. Added "do nothing" for batch operations. Closes #15
This commit is contained in:
parent
c8c8e90435
commit
f2c1e0ed5e
3 changed files with 25 additions and 3 deletions
|
@ -1,10 +1,17 @@
|
|||
App.Pages.init = function()
|
||||
{
|
||||
if ('undefined' == typeof App.Env.initialParams) {
|
||||
if ('undefined' == typeof App.Env.initialParams) { // first run
|
||||
App.Ajax.request('MAIN.getInitial', {}, function(reply) {
|
||||
App.Env.initialParams = reply.data;
|
||||
App.Helpers.updateInitial();
|
||||
});
|
||||
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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
App.Pages.prepareHTML();
|
||||
|
@ -18,6 +25,7 @@ App.Pages.init = function()
|
|||
|
||||
App.Pages.prepareHTML = function()
|
||||
{
|
||||
App.Actions.reset_batch();
|
||||
$('#actions-toolbar .stats-subbar').remove();
|
||||
$('#actions-toolbar .do_action_new_entry').removeClass('hidden');
|
||||
$('.active').removeClass('active');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue