Showing
1 changed file
with
3 additions
and
3 deletions
@@ -352,7 +352,7 @@ define('yohood', function(require, exports) { | @@ -352,7 +352,7 @@ define('yohood', function(require, exports) { | ||
352 | $(".search-btn").trigger("click.search"); | 352 | $(".search-btn").trigger("click.search"); |
353 | }); | 353 | }); |
354 | $(".search-btn").bind("click.search", function() { | 354 | $(".search-btn").bind("click.search", function() { |
355 | - var brand = $.trim($("input[type=text]").val()); | 355 | + var brand = encodeURIComponent($.trim($("input[type=text]").val())); |
356 | var template = '<ul class="brand-list cooperation-list clearfix">{li}</ul>'; | 356 | var template = '<ul class="brand-list cooperation-list clearfix">{li}</ul>'; |
357 | var noSearchTemplate = '<div class="no-search" style="display:block;"><p>未搜索到“{brand}”的相关品牌</p><a href="javascript:;" class="all_brand"><查看全部品牌</a></div>'; | 357 | var noSearchTemplate = '<div class="no-search" style="display:block;"><p>未搜索到“{brand}”的相关品牌</p><a href="javascript:;" class="all_brand"><查看全部品牌</a></div>'; |
358 | var html = ''; | 358 | var html = ''; |
@@ -601,14 +601,14 @@ define('yohood', function(require, exports) { | @@ -601,14 +601,14 @@ define('yohood', function(require, exports) { | ||
601 | var titleStyle = ''; | 601 | var titleStyle = ''; |
602 | var html = '<div class="layout-item clearfix">' + | 602 | var html = '<div class="layout-item clearfix">' + |
603 | '<div class="image-box">' + | 603 | '<div class="image-box">' + |
604 | - '<a href="' + url + '" target="_blank" title="' + title + '">' + | 604 | + '<a href="' + url + '" target="_blank" title="' + $('<p>'+title+'</p>').text() + '">' + |
605 | '<img src="' + img + '" alt="" style="' + imgStyle + '">' + | 605 | '<img src="' + img + '" alt="" style="' + imgStyle + '">' + |
606 | '{playIcon}' + | 606 | '{playIcon}' + |
607 | '</a>' + | 607 | '</a>' + |
608 | '</div>' + | 608 | '</div>' + |
609 | '<div class="content">' + | 609 | '<div class="content">' + |
610 | '<h2 {titleStyle}>' + | 610 | '<h2 {titleStyle}>' + |
611 | - '<a href="' + url + '" title="' + title + '" target="_blank">' + topic + '</a>' + | 611 | + '<a href="' + url + '" title="' + $('<p>'+title+'</p>').text() + '" target="_blank">' + topic + '</a>' + |
612 | '</h2>' + | 612 | '</h2>' + |
613 | '</div>' + | 613 | '</div>' + |
614 | '</div>'; | 614 | '</div>'; |
-
Please register or login to post a comment