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

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

View File

@@ -1,5 +1,5 @@
<li> <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="dropdown pull-right">
<div class="pull-right" ng-click="showCategoryDetails(node)"> <div class="pull-right" ng-click="showCategoryDetails(node)">
<i class="icon-wrench config pointer"></i> <i class="icon-wrench config pointer"></i>