FIX: Show overriden checkbox not triggering search on check.
This commit is contained in:
parent
e619af3eee
commit
2484b8eb91
|
@ -45,9 +45,9 @@ export default Ember.Controller.extend({
|
||||||
this.transitionToRoute('adminSiteText.edit', siteText.get('id'));
|
this.transitionToRoute('adminSiteText.edit', siteText.get('id'));
|
||||||
},
|
},
|
||||||
|
|
||||||
search() {
|
search(overridden) {
|
||||||
const q = this.get('q');
|
const q = this.get('q');
|
||||||
if (q !== lastSearch) {
|
if (q !== lastSearch || overridden) {
|
||||||
this.set('searching', true);
|
this.set('searching', true);
|
||||||
Ember.run.debounce(this, this._performSearch, 400);
|
Ember.run.debounce(this, this._performSearch, 400);
|
||||||
lastSearch = q;
|
lastSearch = q;
|
||||||
|
|
|
@ -7,7 +7,7 @@ export default Ember.Component.extend({
|
||||||
_watchChanges() {
|
_watchChanges() {
|
||||||
// In Ember 13.3 we can use action on the checkbox `{{input}}` but not in 1.11
|
// In Ember 13.3 we can use action on the checkbox `{{input}}` but not in 1.11
|
||||||
this.$('input').on('click.d-checkbox', () => {
|
this.$('input').on('click.d-checkbox', () => {
|
||||||
Ember.run.scheduleOnce('afterRender', () => this.sendAction('change'));
|
Ember.run.scheduleOnce('afterRender', () => this.sendAction('change', true));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue