Ember Upgrade: 1.0

This commit is contained in:
Robin Ward
2013-09-16 14:08:55 -04:00
parent 01075c5e7a
commit be0ce08cc2
110 changed files with 19597 additions and 8477 deletions
@@ -10,12 +10,6 @@ Discourse.HeaderController = Discourse.Controller.extend({
topic: null,
showExtraInfo: null,
toggleStar: function() {
var topic = this.get('topic');
if (topic) topic.toggleStar();
return false;
},
categories: function() {
return Discourse.Category.list();
}.property(),
@@ -36,8 +30,16 @@ Discourse.HeaderController = Discourse.Controller.extend({
return Discourse.SiteSettings.enable_mobile_theme;
}.property(),
toggleMobileView: function() {
Discourse.Mobile.toggleMobileView();
actions: {
toggleStar: function() {
var topic = this.get('topic');
if (topic) topic.toggleStar();
return false;
},
toggleMobileView: function() {
Discourse.Mobile.toggleMobileView();
}
}
});