mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 23:45:45 +01:00
closes #1142
This commit is contained in:
@@ -141,16 +141,16 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
}
|
}
|
||||||
loadingEl.remove();
|
loadingEl.remove();
|
||||||
|
|
||||||
categoriesEl.on('click', function(e) {
|
categoriesEl.on('click', 'li[data-cid]', function(e) {
|
||||||
var el = $(e.target);
|
var el = $(this);
|
||||||
if (el.is('li')) {
|
if (el.is('li')) {
|
||||||
confirmCat.html(e.target.innerHTML);
|
confirmCat.html(el.html());
|
||||||
confirmDiv.css({display: 'block'});
|
confirmDiv.css({display: 'block'});
|
||||||
targetCid = el.attr('data-cid');
|
targetCid = el.attr('data-cid');
|
||||||
targetCatLabel = e.html();
|
targetCatLabel = el.html();
|
||||||
commitEl.prop('disabled', false);
|
commitEl.prop('disabled', false);
|
||||||
}
|
}
|
||||||
}, false);
|
});
|
||||||
|
|
||||||
commitEl.on('click', function() {
|
commitEl.on('click', function() {
|
||||||
if (!commitEl.prop('disabled') && targetCid) {
|
if (!commitEl.prop('disabled') && targetCid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user