Skip to content

Commit

Permalink
Merge pull request #73 from reactiveops/rb/toggle-expand
Browse files Browse the repository at this point in the history
fix expand toggling
  • Loading branch information
rbren authored May 7, 2019
2 parents 0f69921 + 807955d commit 33f2a87
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/dashboard/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ if (!Object.values) {

$(function () {
$('.card .resource-info .name').on('click', function (e) {
console.log('clicked', arguments)
console.log('parent', $(e.srcElement).parent('.resource-info'));
$(e.srcElement).parents('.resource-info').toggleClass('expanded');
$(this).parents('.resource-info').toggleClass('expanded');
});

var expandMatch = window.location.search.match(/expand=(\w+)(\W|$)/);
Expand Down

0 comments on commit 33f2a87

Please sign in to comment.