remove category dragging for now

This commit is contained in:
Athou
2013-06-04 07:16:48 +02:00
parent 48fddc5ed1
commit 6f35491ec6
2 changed files with 6 additions and 2 deletions

View File

@@ -398,7 +398,10 @@ module.directive('droppable', [ 'CategoryService', 'FeedService', function(Categ
if (source.children) {
// source is a category
/*
* TODO better handling of category dragging
*
if (target.children) {
// target is a category
data.parentId = target.id;
@@ -411,6 +414,7 @@ module.directive('droppable', [ 'CategoryService', 'FeedService', function(Categ
CategoryService.modify(data, function() {
CategoryService.init();
});
*/
} else {
// source is a feed

View File

@@ -1,5 +1,5 @@
<li>
<div class="pointer tree-item" ui-if="showLabel" ng-class="getClass(level - 1)" draggable="node" droppable="node">
<div class="pointer tree-item" ui-if="showLabel" ng-class="getClass(level - 1)" droppable="node">
<div class="dropdown pull-right">
<div class="pull-right" ng-click="showCategoryDetails(node)">
<i class="icon-wrench config pointer"></i>