product->featureBar['all'] as $key => $label):?>
@@ -49,12 +48,11 @@
actions;?>
-
+
$program):?>
name):?>
diff --git a/module/product/js/all.js b/module/product/js/all.js index 6a9614becb..d1fa62c671 100644 --- a/module/product/js/all.js +++ b/module/product/js/all.js @@ -1,7 +1,23 @@ $("#" + browseType + "Tab").addClass('btn-active-text'); $(function() { - $('#productTableList').on('sort.sortable', function(e, data) + var $list = $('#programTableList'); + $('#productTableList').addClass('sortable').sortable( + { + selector: 'tr', + dragCssClass: 'drag-row', + trigger: $list.find('.sort-handler').length ? '.sort-handler' : null, + canMoveHere: function($ele, $target) + { + return $ele.data('parent') === $target.data('parent'); + }, + finish: function(e) + { + $('#productListForm').table('initNestedList') + } + }); + + $('#productTableList').on('sortable', function(e, data) { var list = ''; for(i = 0; i < data.list.length; i++) list += $(data.list[i].item).attr('data-id') + ','; diff --git a/module/product/view/all.html.php b/module/product/view/all.html.php index 2d64502717..4ea54aa6cc 100644 --- a/module/product/view/all.html.php +++ b/module/product/view/all.html.php @@ -10,7 +10,6 @@ */ ?> -