itflow/js/app.js

53 lines
1.3 KiB
JavaScript

//Prevents resubmit on forms
if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
//Data Tables Options
$('#dt').dataTable( {
"aaSorting": [],
"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( {
"order": [],
"columnDefs": [
{ "orderable": false, "targets":[""]}
],
"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>'
}
}
});
new EasyMDE({
autoDownloadFontAwesome: false,
element: document.getElementById('addClientNote')
});
new EasyMDE({
autoDownloadFontAwesome: false,
element: document.getElementById('editClientNote')
});