summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <lawrancejing@gmail.com>2014-12-26 03:28:50 +0800
committerYash Bathia <ybathia@yahoo-inc.com>2015-02-11 17:50:53 +0000
commitbacd732df659a42d02057b07647b02867cb3a574 (patch)
treeddbe6371003d8a3c9e1e30c79e9deff1333cb8e0
parentcf15014fbc4f01abfb4d9259968ea2db0f1f67f1 (diff)
downloadhorizon-bacd732df659a42d02057b07647b02867cb3a574.tar.gz
Automatically expand the current panel group on dashboard expansion
If the panel is active, then collapse the panelgroup and collapse the dashboard, the panelgroup with active panel can not expand while expanding the dashboard which collapsed just now. Steps to reproduce: 1. login as admin 2. click 'Project Dashboard',it default expand 'Compute' panel. 3. click 'Network' panel header,then click 'Router' 4. click 'Network' panel header again(collapse the Network panel) 5. click 'Project Dashboard'(collapse the Project panel) 6. click 'Project Dashboard'(expand the Project panel) After those steps we can see the 'Network' panelgroup can not expand Automatically, the patch fix it. Change-Id: I3b4d86c4f7ae42da241d021c746dbe3b8564a4c4 Closes-Bug: 1405681 (cherry picked from commit a2d56e8876b42b05688fedd93b1853720731fcf3)
-rw-r--r--horizon/static/horizon/js/horizon.accordion_nav.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/horizon/static/horizon/js/horizon.accordion_nav.js b/horizon/static/horizon/js/horizon.accordion_nav.js
index 855315116..fc0907fcb 100644
--- a/horizon/static/horizon/js/horizon.accordion_nav.js
+++ b/horizon/static/horizon/js/horizon.accordion_nav.js
@@ -50,6 +50,7 @@ horizon.addInitFunction(function() {
{
// collapse the inactive panel groups
activeDashPanel.closest('div').find("h4").addClass("active");
+ activeDashPanel.closest('ul').slideDown();
allPanelGroupBodies.each(function(index, value) {
var activePanels = $(value).find('li > a.active');
if(activePanels.length === 0) {