Skip to content

Commit

Permalink
Build of v1.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
JimLiu committed Mar 1, 2014
1 parent 5566490 commit fc44d7c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -83,7 +83,7 @@ The Callbacks can be passed through the directive.
myAppModule.controller('MyController', function($scope) {
$scope.items = [...];
$scope.sortableOptions = {
accept: function(modelData, sourceItemScope, targetScope) {
accept: function(modelData, sourceItemScope, targetScope, destIndex) {
return true;
},
itemRemoved: function(scope, modelData, sourceIndex) {
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "Angular-NestedSortable",
"version": "1.2.7",
"version": "1.2.8",
"homepage": "https://github.com/JimLiu/Angular-NestedSortable",
"authors": [
"Jim Liu <junminliu@gmail.com>"
Expand Down
10 changes: 5 additions & 5 deletions demo/demo.js
Expand Up @@ -41,7 +41,7 @@
$scope.selectedItem = {};

$scope.options = {
accept: function(data, sourceItemScope, targetScope) {
accept: function(data, sourceItemScope, targetScope, destIndex) {
$log.info("source sub levels: " + sourceItemScope.maxSubLevels());
$log.info("target level: " + targetScope.level());
$log.info("parent data: ", targetScope.parentItemScope() ? targetScope.parentItemScope().itemData() : "null");
Expand Down Expand Up @@ -142,10 +142,10 @@
"items": [],
}];
$scope.options = {
accept: function(data, sourceItemScope, targetScope) {
accept: function(data, sourceItemScope, targetScope, destIndex) {
$log.info("source sub levels: " + sourceItemScope.maxSubLevels());
$log.info("target level: " + targetScope.level());
$log.info("destIndex: ", targetScope.$index);
$log.info("target items count: ", targetScope.items.length);
$log.info("parent data: ", targetScope.parentItemScope() ? targetScope.parentItemScope().itemData() : "null");
return true;
},
Expand Down Expand Up @@ -219,7 +219,7 @@
$scope.chapters = chapters;

$scope.chaptersOptions = {
accept: function(data, sourceItemScope, targetScope) {
accept: function(data, sourceItemScope, targetScope, destIndex) {
return (data.type == 'chapter'); // only accept chapter
},
orderChanged: function(scope, sourceItem, sourceIndex, destIndex) {
Expand All @@ -230,7 +230,7 @@
};

$scope.lecturesOptions = {
accept: function(data, sourceItemScope, targetScope) {
accept: function(data, sourceItemScope, targetScope, destIndex) {
$log.info("parent chapter data: ", targetScope.parentItemScope().itemData());
return (data.type == 'lecture'); // only accept lecture
},
Expand Down
2 changes: 1 addition & 1 deletion demo/dist/angular-nested-sortable.js
@@ -1,5 +1,5 @@
/**
* @license Angular NestedSortable v1.2.7
* @license Angular NestedSortable v1.2.8
* (c) 2010-2014. https://github.com/JimLiu/Angular-NestedSortable
* License: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion demo/dist/angular-nested-sortable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/angular-nested-sortable.js
@@ -1,5 +1,5 @@
/**
* @license Angular NestedSortable v1.2.7
* @license Angular NestedSortable v1.2.8
* (c) 2010-2014. https://github.com/JimLiu/Angular-NestedSortable
* License: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-nested-sortable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/main.js
@@ -1,5 +1,5 @@
/**
* @license Angular NestedSortable v1.2.7
* @license Angular NestedSortable v1.2.8
* (c) 2010-2014. https://github.com/JimLiu/Angular-NestedSortable
* License: MIT
*/
Expand Down

0 comments on commit fc44d7c

Please sign in to comment.