Merge pull request #3600 from tgxworld/fix_search_show_more_dismissing

FIX: Clicking 'show more' should not dismiss search dropdown.
This commit is contained in:
Sam 2015-07-13 10:03:50 +10:00
commit d247c002bc
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>
{{/if}}
{{#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}}
</div>
{{/each}}

View File

@ -80,7 +80,7 @@ export default Discourse.View.extend({
});
$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);