You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by wi...@apache.org on 2012/07/26 23:05:07 UTC

[23/50] git commit: CS-15478: UI cosmetic fix for empty buttons/viewAll section.

CS-15478: UI cosmetic fix for empty buttons/viewAll 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/85a13dfe
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/85a13dfe
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/85a13dfe

Branch: refs/heads/rbd
Commit: 85a13dfe1a57454fa896efde296ae76ae138485d
Parents: dc19c86
Author: olgasmola <ol...@gmail.com>
Authored: Wed Jul 25 11:33:35 2012 +0300
Committer: olgasmola <ol...@gmail.com>
Committed: Wed Jul 25 11:33:35 2012 +0300

----------------------------------------------------------------------
 ui/scripts/ui/widgets/detailView.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/85a13dfe/ui/scripts/ui/widgets/detailView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js
index c014791..b792bcf 100644
--- a/ui/scripts/ui/widgets/detailView.js
+++ b/ui/scripts/ui/widgets/detailView.js
@@ -836,7 +836,7 @@
           actionFilter: actionFilter,
           data: data,
           context: $detailView.data('view-args').context
-        }).prependTo($firstRow.closest('div.detail-group').closest('.details'));
+        });
 
       // 'View all' button
       var showViewAll = detailViewArgs.viewAll ?
@@ -846,6 +846,9 @@
                   context: context
                 }) : true
             ) : true;
+      if ($actions.find('div.action').size() || (detailViewArgs.viewAll && showViewAll)) {
+        $actions.prependTo($firstRow.closest('div.detail-group').closest('.details'));
+      }
       if (detailViewArgs.viewAll && showViewAll) {
         $('<div>')
           .addClass('view-all')