Fixed an issue with jquery selecting wrong selector on favorite

This commit is contained in:
Raelon Masters
2020-07-22 12:43:07 -04:00
parent 5aeb7ff13c
commit d80ca8ee55
5 changed files with 42 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ $(document).ready(function(){
var scr_height = window.outerHeight;
var scr_width = window.outerWidth;
var hdr_height = $('.app_hdr').height(); // Get our header height
var ftr_height = $('.app_footer').height(); // Get our footer height
var ftr_height = $('.app_footer').height(); // Get our footer height
var nav_width = $('.nav_l').width(); // Get the width of our nav items
var cmp_height = window.screen.availHeight;
var max_height = win_height - (hdr_height + ftr_height) - (scr_height - win_height); // Set our available height
@@ -75,7 +75,7 @@ $(document).ready(function(){
$('#hdr_nav_login').toggle();
});
$('.favorite_action').on('click', function(){
$(this).toggleClass('favorite');
$(this).children('a').toggleClass('favorite');
});
$('#sortlist').change(function () {
var optionSelected = $(this).find("option:selected");