FIX: Clicking 'show more' should not dismiss search dropdown.

This commit is contained in:
Guo Xiang Tan 2015-07-10 16:12:11 +08:00
parent 84549929ba
commit 7a8c26babc
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
<a href="{{resultType.moreUrl}}" class="filter">{{i18n "show_more"}} {{fa-icon "chevron-down"}}</a> <a href="{{resultType.moreUrl}}" class="filter">{{i18n "show_more"}} {{fa-icon "chevron-down"}}</a>
{{/if}} {{/if}}
{{#if resultType.more}} {{#if resultType.more}}
<a href class="filter" {{action "moreOfType" resultType.type bubbles=false}}>{{i18n "show_more"}} {{fa-icon "chevron-down"}}</a> <a href class="filter filter-type" {{action "moreOfType" resultType.type bubbles=false}}>{{i18n "show_more"}} {{fa-icon "chevron-down"}}</a>
{{/if}} {{/if}}
</div> </div>
{{/each}} {{/each}}

View File

@ -80,7 +80,7 @@ export default Discourse.View.extend({
}); });
$dropdown.on('click.d-dropdown', function(e) { $dropdown.on('click.d-dropdown', function(e) {
return $(e.target).closest('a').not('.search-link').length > 0 ? hideDropdown.apply(self) : true; return $(e.target).closest('a').not('.search-link, .filter-type').length > 0 ? hideDropdown.apply(self) : true;
}); });
$html.data('hide-dropdown', hideDropdown); $html.data('hide-dropdown', hideDropdown);