equal
deleted
inserted
replaced
6 player: Ember.inject.service(), |
6 player: Ember.inject.service(), |
7 filter: Ember.inject.service(), |
7 filter: Ember.inject.service(), |
8 constants: Ember.inject.service(), |
8 constants: Ember.inject.service(), |
9 |
9 |
10 isLoading: false, |
10 isLoading: false, |
|
11 currentUrl: '', |
11 |
12 |
12 page: 1, |
13 page: 1, |
13 limit: Ember.computed(function() { |
14 limit: Ember.computed(function() { |
14 return this.get('constants').DOCUMENTS_PAGINATION_PERPAGE; |
15 return this.get('constants').DOCUMENTS_PAGINATION_PERPAGE; |
15 }), |
16 }), |
74 if (!this.get('noticeModel')) { |
75 if (!this.get('noticeModel')) { |
75 this.set('notice', null); |
76 this.set('notice', null); |
76 } |
77 } |
77 }), |
78 }), |
78 |
79 |
|
80 targetUrlChanged: Ember.observer('target.url', function() { |
|
81 Ember.run.next(this, function() { |
|
82 this.set('currentUrl', window.location.href); |
|
83 }); |
|
84 }), |
|
85 |
79 init: function() { |
86 init: function() { |
80 this._super(...arguments); |
87 this._super(...arguments); |
81 this.get('player'); |
88 this.get('player'); |
82 this.get('filter'); |
89 this.get('filter'); |
83 }, |
90 }, |