mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: Show overriden checkbox not triggering search on check.
This commit is contained in:
parent
e619af3eee
commit
2484b8eb91
2 changed files with 3 additions and 3 deletions
|
@ -45,9 +45,9 @@ export default Ember.Controller.extend({
|
|||
this.transitionToRoute('adminSiteText.edit', siteText.get('id'));
|
||||
},
|
||||
|
||||
search() {
|
||||
search(overridden) {
|
||||
const q = this.get('q');
|
||||
if (q !== lastSearch) {
|
||||
if (q !== lastSearch || overridden) {
|
||||
this.set('searching', true);
|
||||
Ember.run.debounce(this, this._performSearch, 400);
|
||||
lastSearch = q;
|
||||
|
|
|
@ -7,7 +7,7 @@ export default Ember.Component.extend({
|
|||
_watchChanges() {
|
||||
// In Ember 13.3 we can use action on the checkbox `{{input}}` but not in 1.11
|
||||
this.$('input').on('click.d-checkbox', () => {
|
||||
Ember.run.scheduleOnce('afterRender', () => this.sendAction('change'));
|
||||
Ember.run.scheduleOnce('afterRender', () => this.sendAction('change', true));
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue