Action list refresh dunlop style
This commit is contained in:
@@ -21,9 +21,7 @@ export default Ember.Controller.extend
|
||||
"#{base_url}/export_technical.csv?#{filter_addition}"
|
||||
apply_filters: ->
|
||||
@incrementProperty 'filters.filter_calls'
|
||||
@set 'model.project_instance_actions.page', 1
|
||||
@set 'model.project_instance_actions.lastPage', null
|
||||
@get('model.project_instance_actions').setOtherParam('q', @get('filter_query'))
|
||||
@get('model.project_instance_actions')?.reload()
|
||||
false
|
||||
actions:
|
||||
refresh_list: -> @apply_filters()
|
||||
|
||||
@@ -34,10 +34,11 @@ export default Ember.Controller.extend({
|
||||
return base_url + "/export_technical.csv?" + filter_addition;
|
||||
}),
|
||||
apply_filters: function() {
|
||||
var ref;
|
||||
this.incrementProperty('filters.filter_calls');
|
||||
this.set('model.project_instance_actions.page', 1);
|
||||
this.set('model.project_instance_actions.lastPage', null);
|
||||
this.get('model.project_instance_actions').setOtherParam('q', this.get('filter_query'));
|
||||
if ((ref = this.get('model.project_instance_actions')) != null) {
|
||||
ref.reload();
|
||||
}
|
||||
return false;
|
||||
},
|
||||
actions: {
|
||||
|
||||
Reference in New Issue
Block a user