We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd16278 commit 0b7e7beCopy full SHA for 0b7e7be
unbxdSearch.js
@@ -1560,12 +1560,16 @@ var unbxdSearchInit = function(jQuery, Handlebars){
1560
1561
bannersToDraw = banner.banners.slice(0, this.options.bannerCount)
1562
.reduce(function(prev, curr){
1563
- return prev.concat(this.compiledBannerTemp(
1564
- {
1565
- landingUrl: curr.landingUrl,
1566
- imageUrl: curr.imageUrl
1567
- }
1568
- ));
+ if(curr.hasOwnProperty('bannerHtml') && curr['bannerHtml']) {
+ return prev.concat(curr.bannerHtml);
+ } else {
+ return prev.concat(this.compiledBannerTemp(
+ {
+ landingUrl: curr.landingUrl,
1569
+ imageUrl: curr.imageUrl
1570
+ }
1571
+ ));
1572
1573
}.bind(this), []);
1574
1575
jQuery(this.options.bannerSelector).html(bannersToDraw.join(''));
0 commit comments