v1.18.x
barisusakli 11 years ago
parent 97a64122b4
commit d2bef79888

@ -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'),

@ -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) {

Loading…
Cancel
Save