|
@@ -372,7 +372,7 @@ define('yohood', function(require, exports) { |
|
@@ -372,7 +372,7 @@ define('yohood', function(require, exports) { |
372
|
});
|
372
|
});
|
373
|
$(".brand-content").html(template.replace('{li}', html));
|
373
|
$(".brand-content").html(template.replace('{li}', html));
|
374
|
} else {
|
374
|
} else {
|
375
|
- $(".brand-content").html(noSearchTemplate.replace('{brand}', brand));
|
375
|
+ $(".brand-content").html(noSearchTemplate.replace('{brand}', decodeURIComponent(brand)));
|
376
|
}
|
376
|
}
|
377
|
}
|
377
|
}
|
378
|
});
|
378
|
});
|
|
@@ -599,16 +599,17 @@ define('yohood', function(require, exports) { |
|
@@ -599,16 +599,17 @@ define('yohood', function(require, exports) { |
599
|
var template = function(topic, img, url, isVideo, isTitleStyle, title, imgStyle) {
|
599
|
var template = function(topic, img, url, isVideo, isTitleStyle, title, imgStyle) {
|
600
|
var playIcon = '';
|
600
|
var playIcon = '';
|
601
|
var titleStyle = '';
|
601
|
var titleStyle = '';
|
|
|
602
|
+ var title = $('<p>'+title+'</p>').text();
|
602
|
var html = '<div class="layout-item clearfix">' +
|
603
|
var html = '<div class="layout-item clearfix">' +
|
603
|
'<div class="image-box">' +
|
604
|
'<div class="image-box">' +
|
604
|
- '<a href="' + url + '" target="_blank" title="' + $('<p>'+title+'</p>').text() + '">' +
|
605
|
+ '<a href="' + url + '" target="_blank" title="' + title + '">' +
|
605
|
'<img src="' + img + '" alt="" style="' + imgStyle + '">' +
|
606
|
'<img src="' + img + '" alt="" style="' + imgStyle + '">' +
|
606
|
'{playIcon}' +
|
607
|
'{playIcon}' +
|
607
|
'</a>' +
|
608
|
'</a>' +
|
608
|
'</div>' +
|
609
|
'</div>' +
|
609
|
'<div class="content">' +
|
610
|
'<div class="content">' +
|
610
|
'<h2 {titleStyle}>' +
|
611
|
'<h2 {titleStyle}>' +
|
611
|
- '<a href="' + url + '" title="' + $('<p>'+title+'</p>').text() + '" target="_blank">' + topic + '</a>' +
|
612
|
+ '<a href="' + url + '" title="' + title + '" target="_blank">' + topic + '</a>' +
|
612
|
'</h2>' +
|
613
|
'</h2>' +
|
613
|
'</div>' +
|
614
|
'</div>' +
|
614
|
'</div>';
|
615
|
'</div>';
|