From: Laury GvR Date: Thu, 13 Apr 2017 20:18:00 +0000 (-0400) Subject: jquery memDetail sideInfo adjusted X-Git-Tag: v1.0.0^2~39 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c3650404f72f5f9220547342e49e3dda8672e194;p=WP-Themes%2Fbrewbakers.git jquery memDetail sideInfo adjusted The jquery for the member detail side-info panel has been adjusted on account of the new wrapper around the element to which it must now refer instead of the old container. Also removed the empty msrp element after it's no longer needed. --- diff --git a/functions.php b/functions.php index 8e3fd4c..9ec5516 100644 --- a/functions.php +++ b/functions.php @@ -21,8 +21,8 @@ if (!function_exists('glm_quicksite_widget_init')) { } add_filter('manufacturer_ids', function(){ // $ids = [3,11]; // Anthony's test ids - remove before go-live - $ids = [165,143,140,178,149,224]; // ids of manufacturer categories on dev55 -// $ids = [16,11,19]; // Laury's test ids - remove before go-live +// $ids = [165,143,140,178,149,224]; // ids of manufacturer categories on dev55 + $ids = [16,11,19]; // Laury's test ids - remove before go-live return $ids; }); /** diff --git a/glm-member-db/views/front/members/detail.html b/glm-member-db/views/front/members/detail.html index 5ed33f4..7b1baa0 100644 --- a/glm-member-db/views/front/members/detail.html +++ b/glm-member-db/views/front/members/detail.html @@ -341,11 +341,12 @@ jQuery(document).ready(function($) { - if( $('.glm-member-custom-fields-container').find('.slash-price').length != 0 ){ - $('.glm-member-custom-fields-container').find('.detail-msrp-value').addClass('sale'); + if( $('.glm-member-custom-fields-container-wrapper').find('.slash-price').length != 0 ){ + $('.glm-member-custom-fields-container-wrapper').find('.detail-msrp-value').addClass('sale'); } $('.detail-sale-price-value').appendTo($('.detail-msrp-value') ).css('display', 'block').css('float', 'right'); + $('.glm-member-custom-fields-container-wrapper').find('.slash-price').remove(); // change the member detail photos grid structure depending