From: Anthony Talarico Date: Fri, 14 Apr 2017 19:12:04 +0000 (-0400) Subject: preserving brands list X-Git-Tag: v1.0.0^2~15 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=346b670fdada5d270a4af631e075e373a05edd1e;p=WP-Themes%2Fbrewbakers.git preserving brands list adding js to keep the brands list in the search widget --- diff --git a/glm-member-db/views/front/members/list.html b/glm-member-db/views/front/members/list.html index fb98aa0..f608c61 100644 --- a/glm-member-db/views/front/members/list.html +++ b/glm-member-db/views/front/members/list.html @@ -484,7 +484,7 @@ brands.push(item); } }); - }); + }); $.each(brands, function(index, item){ @@ -520,52 +520,46 @@ } else { $("#rvManufacturers").prev().prev().prop("disabled",false); } - }); - -// $('#manufacturer-form').submit(function(e){ -// if( $('#brands').prev().children('li').length > 0 ){ -// $('#rvManufacturers').removeAttr('name'); -// } -// -// }); - - - jQuery('select[multiple]').asmSelect(); - - - -// if( $('#brands').prev().children('li').length > 0 ){ -// $("#rvManufacturers").prev().prev().prop("disabled","disabled"); -// } - - if( $('#rvManufacturers').prev().children('li').length > 0 ){ - - $('#brands option').remove(); - var brands = []; - var cat_id = $('#rvManufacturers').val(); - - $.each(cat_id, function(index, item){ - var select_id = item; - $.each(categories , function(index, item){ - if( parseInt(select_id) === item.parent_id ){ - brands.push(item); - } - }); - }); + }); - $.each(brands, function(index, item){ - {literal} var option = $('