wro4j update

This commit is contained in:
Athou
2013-06-27 14:27:00 +02:00
parent 57e08fdd36
commit 61581fd392
3 changed files with 138 additions and 154 deletions

View File

@@ -334,7 +334,7 @@
<dependency> <dependency>
<groupId>ro.isdc.wro4j</groupId> <groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-extensions</artifactId> <artifactId>wro4j-extensions</artifactId>
<version>1.6.3</version> <version>1.7.0</version>
</dependency> </dependency>
<dependency> <dependency>
@@ -380,7 +380,7 @@
<plugin> <plugin>
<groupId>ro.isdc.wro4j</groupId> <groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId> <artifactId>wro4j-maven-plugin</artifactId>
<version>1.6.3</version> <version>1.7.0</version>
<executions> <executions>
<execution> <execution>
<id>js</id> <id>js</id>
@@ -517,7 +517,7 @@
<plugin> <plugin>
<groupId>ro.isdc.wro4j</groupId> <groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId> <artifactId>wro4j-maven-plugin</artifactId>
<version>1.6.3</version> <version>1.7.0</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>

View File

@@ -614,8 +614,7 @@ function($scope, $state, $filter, $timeout, CategoryService) {
$state.transitionTo('feeds.view', { $state.transitionTo('feeds.view', {
_type : 'feed', _type : 'feed',
_id : id _id : id
} });
);
}; };
$scope.open = function() { $scope.open = function() {

View File

@@ -316,7 +316,8 @@ module.directive('category', [ function() {
collapse : !category.expanded collapse : !category.expanded
}); });
}; };
} ] }
]
}; };
} ]); } ]);
@@ -373,7 +374,8 @@ module.directive('draggable', function() {
}; };
}); });
module.directive('droppable', [ 'CategoryService', 'FeedService', function(CategoryService, FeedService) { module.directive('droppable', [ 'CategoryService', 'FeedService',
function(CategoryService, FeedService) {
return { return {
restrict : 'A', restrict : 'A',
link : function(scope, element, attrs) { link : function(scope, element, attrs) {
@@ -400,22 +402,6 @@ 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) {
// target is a category
data.parentId = target.id;
data.position = 0;
} else {
// target is a feed
data.parentId = target.categoryId;
}
CategoryService.modify(data, function() {
CategoryService.init();
});
*/
} else { } else {
// source is a feed // source is a feed
@@ -433,7 +419,6 @@ module.directive('droppable', [ 'CategoryService', 'FeedService', function(Categ
CategoryService.init(); CategoryService.init();
}); });
} }
scope.$apply(); scope.$apply();
} }
}); });