PHRAS-3823 : add permalink in report GUI (#4291)

This commit is contained in:
Aina Sitraka
2023-04-06 15:10:00 +03:00
committed by GitHub
parent 2e8a9dcec2
commit bbd6a240e5
21 changed files with 122 additions and 53 deletions

View File

@@ -65,6 +65,10 @@ $(document).ready(function () {
form = $this.closest('form');
$(".collist", form).hide();
$(".collist-" + value, form).show();
// subdef list depends on selected databox
$(".subdeflist", form).hide();
$(".subdeflist-" + value, form).show();
});
$('.collist').each(function() {
@@ -76,6 +80,15 @@ $(document).ready(function () {
$(".collist-" + i, form).show();
});
$('.subdeflist').each(function() {
var $this = $(this),
form = $this.closest('form'),
i = $this.closest('form').find('.sbas_select').val()
;
$this.hide();
$(".subdeflist-" + i, form).show();
});
$('.form2').each(function() {
if ($(this).html().trim() === '')
$(this).hide();