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 | 71 | loadData: function(e){ |
72 | 72 | if (e){ |
73 | 73 | opened = $(e).attr('opened'); |
74 | - if (typeof opened !== typeof undefined && opened !== false){ | |
74 | + if (typeof opened !== typeof undefined){ | |
75 | 75 | selectors_options.deleteChildren(e); |
76 | 76 | }else { |
77 | 77 | switch(e.attributes['data-url'].value){ |
... | ... | @@ -120,7 +120,7 @@ var selectors_options = { |
120 | 120 | deleteChildren: function(e){ |
121 | 121 | var most_accessed_list = $(e).next(); |
122 | 122 | $(most_accessed_list).slideUp({easing: 'easeInOutSine'}, 1200); |
123 | - $(most_accessed_list).remove(); | |
123 | + $(most_accessed_list).remove(); | |
124 | 124 | $(e).removeAttr("opened"); //remove attribute so it can call API again |
125 | 125 | }, |
126 | 126 | }; | ... | ... |