mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
Removes duplicate Controller definition
This commit is contained in:
parent
0b42228663
commit
1ae6c726dc
2 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,9 @@
|
||||||
@module Discourse
|
@module Discourse
|
||||||
**/
|
**/
|
||||||
Discourse.DiscoveryController = Discourse.ObjectController.extend({
|
Discourse.DiscoveryController = Discourse.ObjectController.extend({
|
||||||
|
loading: false,
|
||||||
|
loadingSpinner: false,
|
||||||
|
scheduledSpinner: null,
|
||||||
|
|
||||||
showMoreUrl: function(period) {
|
showMoreUrl: function(period) {
|
||||||
var url = '', category = this.get('category');
|
var url = '', category = this.get('category');
|
||||||
|
|
|
@ -137,7 +137,6 @@ function buildCategoryRoute(filter, params) {
|
||||||
|
|
||||||
// Finally, build all the routes with the helpers we created
|
// Finally, build all the routes with the helpers we created
|
||||||
Discourse.addInitializer(function() {
|
Discourse.addInitializer(function() {
|
||||||
Discourse.DiscoveryController = Em.Controller.extend({});
|
|
||||||
Discourse.DiscoveryCategoryRoute = buildCategoryRoute('latest');
|
Discourse.DiscoveryCategoryRoute = buildCategoryRoute('latest');
|
||||||
Discourse.DiscoveryCategoryNoneRoute = buildCategoryRoute('latest', {no_subcategories: true});
|
Discourse.DiscoveryCategoryNoneRoute = buildCategoryRoute('latest', {no_subcategories: true});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue