Add ability to edit the uncategorized category name, color, and text_color in a modal

This commit is contained in:
Neil Lalonde
2013-05-03 17:55:04 -04:00
parent 74a238b7e9
commit c6370a3479
8 changed files with 70 additions and 28 deletions

View File

@@ -98,6 +98,13 @@ Discourse.SiteSetting.reopenClass({
result.set('diags', settings.diags);
});
return result;
},
update: function(key, value) {
return Discourse.ajax(Discourse.getURL("/admin/site_settings/") + key, {
type: 'PUT',
data: { value: value }
});
}
});