diff --git a/public/src/forum/admin/categories.js b/public/src/forum/admin/categories.js index 4985ad01c8..015e4a12ca 100644 --- a/public/src/forum/admin/categories.js +++ b/public/src/forum/admin/categories.js @@ -87,12 +87,12 @@ define(['uploader'], function(uploader) { }, distance: 10 }); - $('.blockclass').each(function() { + + $('.blockclass, .admin-categories form select').each(function() { var $this = $(this); $this.val($this.attr('data-value')); }); - function showCreateCategoryModal() { $('#new-category-modal').modal(); } @@ -179,10 +179,12 @@ define(['uploader'], function(uploader) { select_icon($(this).find('i')); }); - $('.admin-categories form input').on('change', function(ev) { + $('.admin-categories form input, .admin-categories form select').on('change', function(ev) { modified(ev.target); }); + + $('.dropdown').on('click', '[data-disabled]', function(ev) { var btn = $(this), categoryRow = btn.parents('li'), diff --git a/src/categories.js b/src/categories.js index ba875bf423..e75ea055af 100644 --- a/src/categories.js +++ b/src/categories.js @@ -43,7 +43,7 @@ var db = require('./database'), link: '', numRecentReplies: 2, class: 'col-md-3 col-xs-6', - imageClass: 'default' + imageClass: 'auto' }; db.setObject('category:' + cid, category, function(err) {