mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Batch operations JS + PHP
This commit is contained in:
parent
2e3a1b76b1
commit
29772cbfdd
4 changed files with 23 additions and 8 deletions
|
@ -53,16 +53,19 @@ App.Actions.update_cs_value = function(evt)
|
|||
App.Actions.mass_delete = function()
|
||||
{
|
||||
App.Actions.mass_action('massiveDelete');
|
||||
App.Actions.reset_batch();
|
||||
}
|
||||
|
||||
App.Actions.mass_suspend = function()
|
||||
{
|
||||
App.Actions.mass_action('massiveSuspend');
|
||||
App.Actions.reset_batch();
|
||||
}
|
||||
|
||||
App.Actions.mass_unsuspend = function()
|
||||
{
|
||||
App.Actions.mass_action('massiveUnsuspend');
|
||||
App.Actions.reset_batch();
|
||||
}
|
||||
|
||||
App.Actions.mass_action = function(method_name)
|
||||
|
@ -80,6 +83,13 @@ App.Actions.mass_action = function(method_name)
|
|||
}
|
||||
}
|
||||
|
||||
App.Actions.reset_batch = function()
|
||||
{
|
||||
$('#batch-processor .selector-title').html('NONE');
|
||||
$('.styled.do_action_toggle_batch_selector.style-applied').attr('checked', false);
|
||||
$('.checkbox.do_action_toggle_batch_selector').css('background-position', '0 0');
|
||||
}
|
||||
|
||||
App.Actions.do_change_password = function()
|
||||
{
|
||||
|
||||
|
@ -533,7 +543,7 @@ App.Actions.add_form_ns = function(evt)
|
|||
|
||||
$(form).find('.ns-entry').each(function(i, o)
|
||||
{
|
||||
$(o).find('label').text('NameServer #' + (i + 1));
|
||||
$(o).find('label').text('NS #' + (i + 1));
|
||||
$(o).find('input').attr('name', 'NS' + (i + 1));
|
||||
});
|
||||
}
|
||||
|
@ -581,7 +591,7 @@ App.Actions.view_template_info = function(evt)
|
|||
$.each(reply.data, function(key) {
|
||||
html += '<li><strong>'+key+':</strong> '+reply.data[key]+'</li>';
|
||||
});
|
||||
App.Helpers.openInnerPopup(elm, '<ul>'+html+'</ul>', 'Template Settings');
|
||||
App.Helpers.openInnerPopup(elm, '<ul>'+html+'</ul>', 'Template Info');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue