1
0
mirror of https://github.com/flarum/core.git synced 2025-08-11 19:04:29 +02:00

Fix index result caching

This commit is contained in:
Toby Zerner
2015-02-26 09:45:12 +10:30
parent 7ab0c3bc17
commit cfb89de251
3 changed files with 3 additions and 4 deletions

View File

@@ -113,9 +113,8 @@ export default Ember.Controller.extend({
model.removeObject(model.findBy('content', discussion));
},
refresh: function() {
loadResults: function() {
var controller = this;
controller.set('model', Ember.ArrayProxy.create());
controller.set('resultsLoading', true);
controller.getResults().then(function(results) {
controller