1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
851 B
JavaScript

2 years ago
jQuery(function () {
$("nav [href='" + window.location.href + "']").closest('li').addClass('current');
// console.log(
setTimeout(function () {
if ($("nav .current").closest('.main-nav').find('> a').attr('href') == undefined) {
$("nav .current").closest('.main-nav').find('> a').click();
}
if ($("nav .current").parent().parent().hasClass('rvnm-expandable')) {
$("nav .current").parent().parent().find('> a').click();
}
}, 500);
2 years ago
$("#menu-manage li").bind('dblclick', function () {
if (confirm('Are sure?')) {
let self = this;
axios.post($("#rem-menu").val() + '/' + $(this).data('menuableid')).then(function () {
$(self).slideUp();
});
}
});
2 years ago
// );
// $("nav .current").closest('li').click();
});