mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 04:55:31 +08:00
FIX: stop losing focus when searching for site settings
This commit is contained in:
parent
b00554d662
commit
d87c80836d
@ -47,7 +47,7 @@ export default Ember.ArrayController.extend(Presence, {
|
||||
});
|
||||
|
||||
this.set('model', matchesGroupedByCategory);
|
||||
return this.transitionToRoute("adminSiteSettingsCategory", category || "all_results");
|
||||
this.transitionToRoute("adminSiteSettingsCategory", category || "all_results");
|
||||
},
|
||||
|
||||
filterContent: Discourse.debounce(function() {
|
||||
|
@ -6,7 +6,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class='controls'>
|
||||
{{text-field value=filter placeholderKey="type_to_filter"}}
|
||||
{{text-field value=filter placeholderKey="type_to_filter" class="no-blur"}}
|
||||
<button {{action "clearFilter"}} class="btn">{{i18n 'admin.site_settings.clear_filter'}}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -89,7 +89,7 @@ export function cleanDOM() {
|
||||
// Remove any link focus
|
||||
// NOTE: the '.not("body")' is here to prevent a bug in IE10 on Win7
|
||||
// cf. https://stackoverflow.com/questions/5657371/ie9-window-loses-focus-due-to-jquery-mobile
|
||||
$(document.activeElement).not("body").blur();
|
||||
$(document.activeElement).not("body").not(".no-blur").blur();
|
||||
|
||||
Discourse.set('notifyCount',0);
|
||||
$('#discourse-modal').modal('hide');
|
||||
|
Loading…
x
Reference in New Issue
Block a user