adding proper url to the text search widget component when a search result is clicked on
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 20 Sep 2018 16:46:05 +0000 (12:46 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 20 Sep 2018 16:46:05 +0000 (12:46 -0400)
views/admin/newDashboard/components/textSearch.html

index 6288f27..a3f1c71 100644 (file)
@@ -51,6 +51,7 @@
                 let search = $(item).text();
                 console.log(search)
                 if(search !== "No Results Found"){
+                    window.location.replace('{$widgetField.resultUrl}&member='+searchResults[search].memberID+"&{$widgetField.entityID}="+searchResults[search].entityID);
                     // window.location.replace('{ $packagingAdminUrl}&member='+searchResults[search].memberID+"&entityID="+searchResults[search].entityID);
                 }
             },