You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function delete_selected()
{
var list = "";
$('input[type=checkbox]').each(function() {
if (this.checked) {
//remove selection rows
$('#custom_tr_'+this.value).remove();
//create list of values that will be parsed to controller
list += this.value + '|';
}
});
//send data to delete
$.post('admin/User', { selection: list }, function(data) {
alert('Voila!');
});
}
</script>
`<script type="text/javascript">
function deleteConfirm(){
var result = confirm("Do you really want to delete records?");
if(result){
return true;
}else{
return false;
}
}
$(document).ready(function(){
$('#check_all').on('click',function(){
if(this.checked){
$('.checkbox').each(function(){
this.checked = true;
});
}else{
$('.checkbox').each(function(){
this.checked = false;
});
}
});
});
</script>
$(function () {
//CHECK ALL BOXES
$('.checkall').click(function () {
$(this).parents('table:eq(0)').find(':checkbox').attr('checked', this.checked);
});
//ADD DELETE BUTTON
if($('.pDiv2 .delete_all_button').length == 0) { //check if element already exists (for ajax refresh purposes)
$('.pDiv2').append('');
}
});
function delete_selected()
{
var list = "";
$('input[type=checkbox]').each(function() {
if (this.checked) {
//remove selection rows
$('#custom_tr_'+this.value).remove();
//create list of values that will be parsed to controller
list += this.value + '|';
}
});
//send data to delete
$.post('admin/User', { selection: list }, function(data) {
alert('Voila!');
});
}
</script>
these is the list.php`
The text was updated successfully, but these errors were encountered: