Fix edit category modal for uncategorized when showing it the second time

This commit is contained in:
Neil Lalonde 2013-08-15 12:16:55 -04:00
parent 27fbd232d4
commit 5a4b939cf7
1 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,11 @@ Discourse.EditCategoryController = Discourse.ObjectController.extend(Discourse.M
settingsSelected: Ember.computed.equal('selectedTab', 'settings'),
foregroundColors: ['FFFFFF', '000000'],
descriptionChanged: function() {
onShow: function() {
this.changeSize();
},
changeSize: function() {
if (this.present('description')) {
this.set('controllers.modal.modalClass', 'edit-category-modal full');
} else {