Added badge count to client side nav, switched from js active nav to using php

This commit is contained in:
root
2019-05-10 18:04:03 -04:00
parent 5af085a40b
commit f9d6f4d316
9 changed files with 167 additions and 77 deletions

View File

@@ -1,4 +1,4 @@
//Prevents resubmit on refresh or back
//Prevents resubmit on forms
if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
@@ -42,13 +42,6 @@ $('#dT').dataTable( {
});
// Highlight the active nav link on side nav
$(function() {
var url = window.location.pathname;
var filename = url.substr(url.lastIndexOf('/') + 1);
$('.navbar-nav a[href$="' + filename + '"]').parent().addClass("active");
});
new EasyMDE({
autoDownloadFontAwesome: false,
element: document.getElementById('addClientNote')