mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
First commit
This commit is contained in:
56
js/app.js
Normal file
56
js/app.js
Normal file
@@ -0,0 +1,56 @@
|
||||
//Prevents resubmit on refresh or back
|
||||
if ( window.history.replaceState ) {
|
||||
window.history.replaceState( null, null, window.location.href );
|
||||
}
|
||||
|
||||
//Data Tables Options
|
||||
$('#dt').dataTable( {
|
||||
"order": [],
|
||||
language: {
|
||||
search: '_INPUT_',
|
||||
searchPlaceholder: "Enter search...",
|
||||
sLengthMenu: "_MENU_",
|
||||
sInfo: "<strong>records:</strong> _START_-_END_ of _TOTAL_",
|
||||
paginate: {
|
||||
previous: '<i class="fa fa-angle-left"></i>',
|
||||
next: '<i class="fa fa-angle-right"></i>'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Call the dataTables jQuery plugin
|
||||
|
||||
$('#dataTable').DataTable();
|
||||
|
||||
$('#dT').dataTable( {
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "targets": 5 }
|
||||
],
|
||||
"orderCellsTop": true,
|
||||
language: {
|
||||
search: "<i class='fa fa-search'></i>_INPUT_",
|
||||
searchPlaceholder: "Search",
|
||||
sLengthMenu: "_MENU_",
|
||||
sInfo: "_START_-_END_ of _TOTAL_",
|
||||
paginate: {
|
||||
previous: '<i class="fa fa-angle-left"></i>',
|
||||
next: '<i class="fa fa-angle-right"></i>'
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
//Highlight top nav menu item with current page
|
||||
$(function() {
|
||||
// Highlight the active nav link.
|
||||
var url = window.location.pathname;
|
||||
var filename = url.substr(url.lastIndexOf('/') + 1);
|
||||
$('.navbar a[href$="' + filename + '"]').parent().addClass("active");
|
||||
});
|
||||
|
||||
$(function() {
|
||||
// Highlight the active nav link.
|
||||
var url = window.location.pathname;
|
||||
var filename = url.substr(url.lastIndexOf('/') + 1);
|
||||
$('.nav a[href$="' + filename + '"]').parent().addClass("active");
|
||||
});
|
||||
Reference in New Issue
Block a user