mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 17:35:46 +01:00
closes #3687
This commit is contained in:
@@ -82,4 +82,11 @@ div.categories {
|
|||||||
.description {
|
.description {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.children-placeholder{
|
||||||
|
border: 1px dashed #ddd;
|
||||||
|
min-height: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -153,10 +153,8 @@ define('admin/manage/categories', ['vendor/jquery/serializeObject/jquery.ba-seri
|
|||||||
|
|
||||||
// Handle and children categories in this level have
|
// Handle and children categories in this level have
|
||||||
for(var x=0,numCategories=categories.length;x<numCategories;x++) {
|
for(var x=0,numCategories=categories.length;x<numCategories;x++) {
|
||||||
if (categories[x].hasOwnProperty('children') && categories[x].children.length > 0) {
|
|
||||||
renderList(categories[x].children, $('li[data-cid="' + categories[x].cid + '"]'), categories[x].cid);
|
renderList(categories[x].children, $('li[data-cid="' + categories[x].cid + '"]'), categories[x].cid);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Make list sortable
|
// Make list sortable
|
||||||
sortables[parentId] = Sortable.create($('ul[data-cid="' + parentId + '"]')[0], {
|
sortables[parentId] = Sortable.create($('ul[data-cid="' + parentId + '"]')[0], {
|
||||||
|
|||||||
@@ -26,4 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<!-- END categories -->
|
<!-- END categories -->
|
||||||
|
|
||||||
|
<li class="children-placeholder"></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
Reference in New Issue
Block a user