fixed site structure and also member roles side bar problem.
This commit is contained in:
1 parent
2b97d4ca22
commit
2c8705ac3e
2 files changed
+8
-8
No files matched your search
@@ -286,7 +286,6 @@ function getView(module_id, id) {
|
||||
cache: false,
|
||||
});
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$pageModule = null,
|
||||
$pageF2E = null,
|
||||
@@ -322,11 +321,12 @@ $(function() {
|
||||
disableNesting: 'no-nest',
|
||||
update: function(event, ui) {
|
||||
var position = null;
|
||||
if($(ui.item).closest('ol').hasClass('item-groups')) {
|
||||
position = $(ui.item).index() - 1;
|
||||
} else {
|
||||
position = $(ui.item).index();
|
||||
};
|
||||
// if($(ui.item).closest('ol').hasClass('item-groups')) {
|
||||
// position = $(ui.item).index() - 1;
|
||||
// } else {
|
||||
// position = $(ui.item).index();
|
||||
// };
|
||||
position = $(ui.item).index();
|
||||
$.post("<%= Rails.application.routes.url_helpers.update_position_admin_items_path %>", { id: ui.item.attr('id'), parent_id: (ui.item.parent().closest('li').attr('id') || ui.item.parent().closest('ol').attr('id')), position: position } );
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user