Commit 9311201ba5910927de617bb1fe3ea9d26b0eb1f9
1 parent
7b31e9ed
Exists in
master
and in
2 other branches
solved issue of multiple lists below most accessed tabs
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
dashboards/static/dashboards/js/behavior.js
@@ -71,7 +71,7 @@ var selectors_options = { | @@ -71,7 +71,7 @@ var selectors_options = { | ||
71 | loadData: function(e){ | 71 | loadData: function(e){ |
72 | if (e){ | 72 | if (e){ |
73 | opened = $(e).attr('opened'); | 73 | opened = $(e).attr('opened'); |
74 | - if (typeof opened !== typeof undefined && opened !== false){ | 74 | + if (typeof opened !== typeof undefined){ |
75 | selectors_options.deleteChildren(e); | 75 | selectors_options.deleteChildren(e); |
76 | }else { | 76 | }else { |
77 | switch(e.attributes['data-url'].value){ | 77 | switch(e.attributes['data-url'].value){ |
@@ -120,7 +120,7 @@ var selectors_options = { | @@ -120,7 +120,7 @@ var selectors_options = { | ||
120 | deleteChildren: function(e){ | 120 | deleteChildren: function(e){ |
121 | var most_accessed_list = $(e).next(); | 121 | var most_accessed_list = $(e).next(); |
122 | $(most_accessed_list).slideUp({easing: 'easeInOutSine'}, 1200); | 122 | $(most_accessed_list).slideUp({easing: 'easeInOutSine'}, 1200); |
123 | - $(most_accessed_list).remove(); | 123 | + $(most_accessed_list).remove(); |
124 | $(e).removeAttr("opened"); //remove attribute so it can call API again | 124 | $(e).removeAttr("opened"); //remove attribute so it can call API again |
125 | }, | 125 | }, |
126 | }; | 126 | }; |