mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
Fix javascript regression with quoting
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user