fix: [UI] Expanding attribute correlations on other pages

pull/6060/head
Jakub Onderka 2020-06-26 10:12:00 +02:00
parent 364ca9d9d8
commit 7a50616226
1 changed files with 10 additions and 10 deletions

View File

@ -4556,16 +4556,16 @@ $(document).ready(function() {
$('.quickToggleCheckbox').toggle(function() {
var url = $(this).data('checkbox-url');
});
$(".correlation-expand-button").on("click", function() {
$(this).parent().children(".correlation-expanded-area").show();
$(this).parent().children(".correlation-collapse-button").show();
$(this).hide();
});
$(".correlation-collapse-button").on("click", function() {
$(this).parent().children(".correlation-expanded-area").hide();
$(this).parent().children(".correlation-expand-button").show();
$(this).hide();
});
});
$("body").on("click", ".correlation-expand-button", function() {
$(this).parent().children(".correlation-expanded-area").show();
$(this).parent().children(".correlation-collapse-button").show();
$(this).hide();
}).on("click", ".correlation-collapse-button", function() {
$(this).parent().children(".correlation-expanded-area").hide();
$(this).parent().children(".correlation-expand-button").show();
$(this).hide();
});
function queryEventLock(event_id, user_org_id) {