CLOUDSTACK-972:The template will disappear after reordering in template section
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/a69e7f9b Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/a69e7f9b Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/a69e7f9b Branch: refs/heads/api_limit Commit: a69e7f9bf605079968a7e3a7facdede167504aa4 Parents: 4f479e2 Author: Pranav Saxena <[email protected]> Authored: Thu Jan 17 00:02:11 2013 +0530 Committer: Pranav Saxena <[email protected]> Committed: Thu Jan 17 00:02:11 2013 +0530 ---------------------------------------------------------------------- ui/scripts/ui/widgets/listView.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/a69e7f9b/ui/scripts/ui/widgets/listView.js ---------------------------------------------------------------------- diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js index 85523ea..9e16ec2 100644 --- a/ui/scripts/ui/widgets/listView.js +++ b/ui/scripts/ui/widgets/listView.js @@ -560,8 +560,8 @@ return $(this).index() == index; }); - if ($target.index() > $tr.index()) $target.after($tr); - else $target.before($tr); + // if ($target.index() > $tr.index()) $target.after($tr); + // else $target.before($tr); $tr.closest('.list-view').scrollTop($tr.position().top - $tr.height() * 2);
