Skip to content

Commit

Permalink
Nested Content
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Nov 20, 2024
1 parent e10168e commit 1efd18a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ th.scrollbar-header {
/*Breadcrumb*/
.page-dialog .ribbon-breadbox {
left: -16px;
margin-left: 16px;
}
.page-dialog .ribbon-breadbox:before {
border-top: none;
Expand Down Expand Up @@ -636,6 +637,10 @@ th.scrollbar-header {
display: none;
}
/*Dialogs*/
.ui-dialog .page-dialog.ui-dialog-content {
margin: 0;
padding: 0;
}
.page-dialog .hide-in-dialog,
.dialog {
display: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1083,9 +1083,14 @@ $(document).on("change", "#date-range", function () {

});
// Dialog events
$(document).on("click", ".dialog-opener, .page-dialog .partial-support", function (e) {
jlab.setPartial = function(href) {
jlab.closePageDialogs();
jlab.openPageInDialog($(this).attr("href"));
jlab.openPageInDialog(href);
};

$(document).on("click", ".dialog-opener, .page-dialog .partial-support", function (e) {
jlab.partialUrl = $(this).attr("href");
jlab.setPartial(jlab.partialUrl);
return false;
});
$(document).on("click", ".dialog-close-button", function () {
Expand All @@ -1103,6 +1108,17 @@ $(document).on("keypress", ".dialog input", function (e) {
$(document).on("change", ".change-submit", function () {
$(this).closest("form").submit();
});
$(document).on("submit", ".partial .filter-form", function() {
let $form = $(this),
href = jlab.partialUrl;
url = new URL(href + '?' + $form.serialize(), window.location.href);

url.searchParams.set('partial', 'Y');

jlab.setPartial(url.href);

return false;
});
// Pagination controls
$(document).on("click", ".next-button, .previous-button", function () {
let $widget = $(this).closest("section").find(".filter-flyout-widget");
Expand Down

0 comments on commit 1efd18a

Please sign in to comment.