From 711663410e779f967ac15c766ff49a3508436939 Mon Sep 17 00:00:00 2001 From: Jason Shackles Date: Sun, 29 Jan 2017 10:02:41 -0800 Subject: [PATCH] FIX: bug with DLC checkbox options Will now correctly select unowned and wishlisted items again. --- enhancedsteam.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/enhancedsteam.js b/enhancedsteam.js index febe3ecd..9cf294d7 100644 --- a/enhancedsteam.js +++ b/enhancedsteam.js @@ -6104,7 +6104,7 @@ function add_dlc_checkboxes() { $(this).find(".game_area_dlc_name").prepend(""); } else { $(this).find(".game_area_dlc_name").css("margin-left", "23px"); - } + } }).hover(function() { $(this).find(".ds_flag").hide(); }, function() { @@ -6126,25 +6126,25 @@ function add_dlc_checkboxes() { $(".game_area_dlc_section").find(".gradientbg").after(""); $("#es_dlc_option_panel").append("
" + localized_strings.select.unowned_dlc + "
"); - $("#unowned_dlc_check").on("click", function() { + $("#unowned_dlc_check").on("click", function() { $(".game_area_dlc_section").find(".game_area_dlc_row").each(function() { - if (!($(this).hasClass("es_highlight_owned"))) { - $(this).find("input").prop("checked", true).change(); + if (!($(this).hasClass("es_highlighted_owned"))) { + $(this).find("input").prop("checked", true).change(); } }); }); $("#es_dlc_option_panel").append("
" + localized_strings.select.wishlisted_dlc + "
"); - $("#wl_dlc_check").on("click", function() { + $("#wl_dlc_check").on("click", function() { $(".game_area_dlc_section").find(".game_area_dlc_row").each(function() { - if ($(this).hasClass("es_highlight_wishlist")) { + if ($(this).hasClass("es_highlighted_wishlist")) { $(this).find("input").prop("checked", true).change(); - } + } }); }); $("#es_dlc_option_panel").append("
" + localized_strings.select.none + "
"); - $("#no_dlc_check").on("click", function() { + $("#no_dlc_check").on("click", function() { $(".game_area_dlc_section").find(".game_area_dlc_row").each(function() { $(this).find("input").prop("checked", false).change(); });