restore composer.json, add mysqli extension
This commit is contained in:
141
public/vendor/dashboard/app-assets/js/scripts/datatables/datatable.js
vendored
Executable file
141
public/vendor/dashboard/app-assets/js/scripts/datatables/datatable.js
vendored
Executable file
@@ -0,0 +1,141 @@
|
||||
/*=========================================================================================
|
||||
File Name: datatables-basic.js
|
||||
Description: Basic Datatable
|
||||
----------------------------------------------------------------------------------------
|
||||
Item Name: Vuesax HTML Admin Template
|
||||
Version: 1.1
|
||||
Author: PIXINVENT
|
||||
Author URL: http://www.themeforest.net/user/pixinvent
|
||||
==========================================================================================*/
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
/****************************************
|
||||
* js of zero configuration *
|
||||
****************************************/
|
||||
|
||||
$('.zero-configuration').DataTable();
|
||||
|
||||
/********************************************
|
||||
* js of Order by the grouping *
|
||||
********************************************/
|
||||
|
||||
var groupingTable = $('.row-grouping').DataTable({
|
||||
"columnDefs": [{
|
||||
"visible": false,
|
||||
"targets": 2
|
||||
}],
|
||||
"order": [
|
||||
[2, 'asc']
|
||||
],
|
||||
"displayLength": 10,
|
||||
"drawCallback": function(settings) {
|
||||
var api = this.api();
|
||||
var rows = api.rows({
|
||||
page: 'current'
|
||||
}).nodes();
|
||||
var last = null;
|
||||
|
||||
api.column(2, {
|
||||
page: 'current'
|
||||
}).data().each(function(group, i) {
|
||||
if (last !== group) {
|
||||
$(rows).eq(i).before(
|
||||
'<tr class="group"><td colspan="5">' + group + '</td></tr>'
|
||||
);
|
||||
|
||||
last = group;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('.row-grouping tbody').on('click', 'tr.group', function() {
|
||||
var currentOrder = groupingTable.order()[0];
|
||||
if (currentOrder[0] === 2 && currentOrder[1] === 'asc') {
|
||||
groupingTable.order([2, 'desc']).draw();
|
||||
}
|
||||
else {
|
||||
groupingTable.order([2, 'asc']).draw();
|
||||
}
|
||||
});
|
||||
|
||||
/*************************************
|
||||
* js of complex headers *
|
||||
*************************************/
|
||||
|
||||
$('.complex-headers').DataTable();
|
||||
|
||||
|
||||
/*****************************
|
||||
* js of Add Row *
|
||||
******************************/
|
||||
|
||||
var t = $('.add-rows').DataTable();
|
||||
var counter = 2;
|
||||
|
||||
$('#addRow').on( 'click', function () {
|
||||
t.row.add( [
|
||||
counter +'.1',
|
||||
counter +'.2',
|
||||
counter +'.3',
|
||||
counter +'.4',
|
||||
counter +'.5'
|
||||
] ).draw( false );
|
||||
|
||||
counter++;
|
||||
});
|
||||
|
||||
|
||||
/**************************************************************
|
||||
* js of Tab for COLUMN SELECTORS WITH EXPORT AND PRINT OPTIONS *
|
||||
***************************************************************/
|
||||
|
||||
$('.dataex-html5-selectors').DataTable( {
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'copyHtml5',
|
||||
exportOptions: {
|
||||
columns: [ 0, ':visible' ]
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: 'pdfHtml5',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
}
|
||||
},
|
||||
{
|
||||
text: 'JSON',
|
||||
action: function ( e, dt, button, config ) {
|
||||
var data = dt.buttons.exportData();
|
||||
|
||||
$.fn.dataTable.fileSave(
|
||||
new Blob( [ JSON.stringify( data ) ] ),
|
||||
'Export.json'
|
||||
);
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: 'print',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
/**************************************************
|
||||
* js of scroll horizontal & vertical *
|
||||
**************************************************/
|
||||
|
||||
$('.scroll-horizontal-vertical').DataTable( {
|
||||
"scrollY": 200,
|
||||
"scrollX": true
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
1
public/vendor/dashboard/app-assets/js/scripts/datatables/datatable.min.js
vendored
Executable file
1
public/vendor/dashboard/app-assets/js/scripts/datatables/datatable.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){$(".zero-configuration").DataTable();var o=$(".row-grouping").DataTable({columnDefs:[{visible:!1,targets:2}],order:[[2,"asc"]],displayLength:10,drawCallback:function(a){var o=this.api(),t=o.rows({page:"current"}).nodes(),r=null;o.column(2,{page:"current"}).data().each(function(a,o){r!==a&&($(t).eq(o).before('<tr class="group"><td colspan="5">'+a+"</td></tr>"),r=a)})}});$(".row-grouping tbody").on("click","tr.group",function(){var a=o.order()[0];2===a[0]&&"asc"===a[1]?o.order([2,"desc"]).draw():o.order([2,"asc"]).draw()}),$(".complex-headers").DataTable();var a=$(".add-rows").DataTable(),t=2;$("#addRow").on("click",function(){a.row.add([t+".1",t+".2",t+".3",t+".4",t+".5"]).draw(!1),t++}),$(".dataex-html5-selectors").DataTable({dom:"Bfrtip",buttons:[{extend:"copyHtml5",exportOptions:{columns:[0,":visible"]}},{extend:"pdfHtml5",exportOptions:{columns:":visible"}},{text:"JSON",action:function(a,o,t,r){var e=o.buttons.exportData();$.fn.dataTable.fileSave(new Blob([JSON.stringify(e)]),"Export.json")}},{extend:"print",exportOptions:{columns:":visible"}}]}),$(".scroll-horizontal-vertical").DataTable({scrollY:200,scrollX:!0})});
|
||||
48
public/vendor/dashboard/app-assets/js/scripts/datatables/user-datatable.js
vendored
Executable file
48
public/vendor/dashboard/app-assets/js/scripts/datatables/user-datatable.js
vendored
Executable file
@@ -0,0 +1,48 @@
|
||||
/*=========================================================================================
|
||||
File Name: user-datatable.js
|
||||
Description: User Datatable
|
||||
----------------------------------------------------------------------------------------
|
||||
Item Name: Vuesax HTML Admin Template
|
||||
Version: 1.1
|
||||
Author: PIXINVENT
|
||||
Author URL: http://www.themeforest.net/user/pixinvent
|
||||
==========================================================================================*/
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
/************************************************
|
||||
* js of select checkbox and Length *
|
||||
************************************************/
|
||||
|
||||
$('#check-slct').DataTable( {
|
||||
columnDefs: [ {
|
||||
orderable: false,
|
||||
className: 'select-checkbox',
|
||||
targets: 0
|
||||
} ],
|
||||
select: {
|
||||
style: 'os',
|
||||
selector: 'td:first-child'
|
||||
},
|
||||
order: [[ 1, 'asc' ]],
|
||||
|
||||
"lengthMenu": [[5, 25, 50, -1], [5, 25, 50, "All"]],
|
||||
|
||||
/**************************************
|
||||
* js of Search Placeholder *
|
||||
***************************************/
|
||||
|
||||
language: {
|
||||
search: "_INPUT_",
|
||||
"search": '<i class="fa fa-search"></i>',
|
||||
"searchPlaceholder": "search",
|
||||
}
|
||||
|
||||
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
} );
|
||||
|
||||
1
public/vendor/dashboard/app-assets/js/scripts/datatables/user-datatable.min.js
vendored
Executable file
1
public/vendor/dashboard/app-assets/js/scripts/datatables/user-datatable.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){$("#check-slct").DataTable({columnDefs:[{orderable:!1,className:"select-checkbox",targets:0}],select:{style:"os",selector:"td:first-child"},order:[[1,"asc"]],lengthMenu:[[5,25,50,-1],[5,25,50,"All"]],language:{search:"_INPUT_",search:'<i class="fa fa-search"></i>',searchPlaceholder:"search"}})});
|
||||
Reference in New Issue
Block a user