public/vendor/larasnap/js/larasnap-custom.js
/*use for filters which works on bulk action(using check all, check funcionalities)*/
use for filters which works on bulk action(using check all, check funcionalities)
use for filters which works on bulk action ( using check all check funcionalities )
function filterBulk(operation){
    var idsArr = [];
    $(".bulk-check:checked").each(function () {
        idsArr.push($(this).attr('data-id'));
    });
    if (idsArr.length <= 0) {
        $('#actions').val(0);
        alert("Please select atleast one record to "+operation+".");
    }
    else {
        switch (operation) {
            case "delete":
                if(confirm("Are you sure, you want to "+operation+" the selected records?")){
                    $("input[name=_method]").val('DELETE');
                    $("#list-form").submit();
                }
                break;
        }
    }
}
function filterBulk ( operation ) { var idsArr = [ ] ; $ ( ".bulk-check:checked" ) . each ( function ( ) { idsArr . push ( $ ( this ) . attr ( 'data-id' ) ) ; } ) ; if ( idsArr . length <= 0 ) { $ ( '#actions' ) . val ( 0 ) ; alert ( "Please select atleast one record to " + operation + "." ) ; } else { switch ( operation ) { case "delete" : if ( confirm ( "Are you sure, you want to " + operation + " the selected records?" ) ) { $ ( "input[name=_method]" ) . val ( 'DELETE' ) ; $ ( "#list-form" ) . submit ( ) ; } break ; } } }
use for filters which works on bulk action(using check all, check funcionalities)
use for filters which works on bulk action ( using check all check funcionalities )
/* Default Bulk Check Start*/ /* Default Bulk Check End*/