Skip to content

Commit

Permalink
modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis KCHAOU committed Mar 6, 2021
1 parent 61be10d commit 5632911
Show file tree
Hide file tree
Showing 11 changed files with 105,676 additions and 48,671 deletions.
Binary file modified dist/my-app-angular/assets/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions dist/my-app-angular/assets/js/init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
$(function() {

var table=$('table').DataTable({
orderCellsTop: true,
dom: 'Bfrtip',
paging: true,
autoFill: true,
pageLength: 10,
buttons: [
'pdf','csvHtml5','excel','print'
],
initComplete: function () {
this.api().columns([0,1,2,3,4,5,6,7]).every( function () {
var column = this;
var select = $('<select style="width:60px" ><option value=""></option></select>')
.appendTo( $(column.footer()).empty() )
.on( 'change', function () {
var val = $.fn.dataTable.util.escapeRegex(
$(this).val()
);

column
.search( val ? '^'+val+'$' : '', true, false )
.draw();
} );

column.data().unique().sort().each( function ( d, j ) {
select.append( '<option value="'+d+'">'+d+'</option>' )
} );
} );
}



});
//$.fn.DataTable.ext.pager.numbers_length = 2;
$('a.toggle-vis').on( 'click', function (e) {
e.preventDefault();

// Get the column API object
var column = table.column( $(this).attr('data-column') );

// Toggle the visibility
column.visible( ! column.visible() );
} );


$('.dataTables_paginate').addClass("btn-group datatable-pagination");
$('.dataTables_paginate > a').wrapInner('<span />');
$('.dataTables_paginate > a:first-child').append('<i class="icon-chevron-left shaded"></i>');
$('.dataTables_paginate > a:last-child').append('<i class="icon-chevron-right shaded"></i>');


$('.tooltips').append("<span></span>");
$('.tooltips:not([tooltip-position])').attr('tooltip-position','bottom');


$(".tooltips").mouseenter(function(){
$(this).find('span').empty().append($(this).attr('tooltip'));
});

});
5 changes: 3 additions & 2 deletions dist/my-app-angular/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Sufee Admin - HTML5 Admin Template</title>
<title>ERP Base</title>
<meta name="description" content="Sufee Admin - HTML5 Admin Template">
<meta name="viewport" content="width=device-width, initial-scale=1">

Expand All @@ -16,7 +16,8 @@

<!-- Custom styles for this page -->
<link href="assets/vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">

<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.23/datatables.min.css"/>

<link rel="stylesheet" href="styles.css"></head>
<body>

Expand Down
15,042 changes: 13,710 additions & 1,332 deletions dist/my-app-angular/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/my-app-angular/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/my-app-angular/polyfills.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/my-app-angular/polyfills.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/my-app-angular/styles.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5632911

Please sign in to comment.