Comments in the JS

This commit is contained in:
snipe 2017-11-04 00:15:23 -07:00
parent 2522bfee9c
commit 15d4344efb

View file

@ -772,6 +772,7 @@
$(function () { $(function () {
$('[data-toggle="tooltip"]').tooltip(); $('[data-toggle="tooltip"]').tooltip();
// This javascript handles saving the state of the menu (expanded or not)
$('body').bind('expanded.pushMenu', function() { $('body').bind('expanded.pushMenu', function() {
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
@ -791,6 +792,7 @@
}); });
// Initiate the ekko lightbox
$(document).on('click', '[data-toggle="lightbox"]', function(event) { $(document).on('click', '[data-toggle="lightbox"]', function(event) {
event.preventDefault(); event.preventDefault();
$(this).ekkoLightbox(); $(this).ekkoLightbox();