Updates
This commit is contained in:
47
resources/views/vendor/Chumper/user-javascript.blade.php
vendored
Normal file
47
resources/views/vendor/Chumper/user-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var show = 'active';
|
||||
oTable = myFunction(show);
|
||||
|
||||
$("select[name=type_of_profile]").change(function () {
|
||||
//alert($('select[name=type_of_profile]').val());
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction(show)
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"ajax": {
|
||||
url: "{{url('user-list')}}",
|
||||
data: function (d) {
|
||||
d.profiletype = show;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
$('.active').on('click', function(){
|
||||
show = 'active';
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction(show);
|
||||
});
|
||||
|
||||
$('.inactive').on('click', function(){
|
||||
show = 'inactive';
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction(show);
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
Reference in New Issue
Block a user