Inventory refactory: working on inventory group copy/move via drag-n-drop. The graphical piece is mostly working.

This commit is contained in:
Chris Houseknecht
2014-01-14 23:25:25 +00:00
parent b81e7ad967
commit 902008d17e
10 changed files with 312 additions and 233 deletions

View File

@@ -29,9 +29,15 @@ angular.module('InventoryGroupsDefinition', [])
ngClass: "group.selected_class",
hasChildren: true,
columnClass: 'col-lg-9',
nosort: true
},
source: {
nosort: true,
awDroppable: "\{\{ group.isDroppable \}\}",
awDraggable: "\{\{ group.isDraggable \}\}",
dataContainment: "#groups_table",
dataTreeId: "\{\{ group.id \}\}",
dataGroupId: "\{\{ group.group_id \}\}",
dataAccept: "dropAccept" //function determining when draggable is accepted by droppable
}
/*source: {
label: 'Source',
searchType: 'select',
searchOptions: [
@@ -65,7 +71,7 @@ angular.module('InventoryGroupsDefinition', [])
searchOnly: true,
sourceModel: 'inventory_source',
sourceField: 'status'
}
}*/
},
actions: {