Fix javascript regression with quoting

This commit is contained in:
Robin Ward
2013-02-21 12:54:40 -05:00
parent c5393d93f3
commit f6263749d4
9 changed files with 46 additions and 4 deletions

View File

@ -1,6 +1,7 @@
(function() {
window.Discourse.AdminCustomizeController = Ember.Controller.extend({
newCustomization: function() {
var item;
item = Discourse.SiteCustomization.create({
@ -9,12 +10,15 @@
this.get('content').pushObject(item);
return this.set('content.selectedItem', item);
},
selectStyle: function(style) {
return this.set('content.selectedItem', style);
},
save: function() {
return this.get('content.selectedItem').save();
},
"delete": function() {
var _this = this;
return bootbox.confirm(Em.String.i18n("admin.customize.delete_confirm"), Em.String.i18n("no_value"), Em.String.i18n("yes_value"), function(result) {
@ -27,6 +31,7 @@
}
});
}
});
}).call(this);