Skip to content

Commit

Permalink
Merge pull request kitodo#5868 from effective-webwork/lists-js
Browse files Browse the repository at this point in the history
Do not try to load process table on other list pages
  • Loading branch information
solth authored Jan 15, 2024
2 parents a6d0a8b + 84f9630 commit be40db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kitodo/src/main/webapp/WEB-INF/resources/js/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $(document).on("click", ".allSelectable .ui-chkbox-all .ui-chkbox-box", function

$(window).on("load", function () {
$.ready.then(function () {
if (typeof PF('processesTable').selection !== "undefined" && (PF('processesTable').selection[0] === '@all' || PF('processesTable').selection.length === PF('processesTable').cfg.paginator.rowCount )) {
if ($('#processesTabView\\:processesForm\\:processesTable').length && typeof PF('processesTable').selection !== "undefined" && (PF('processesTable').selection[0] === '@all' || PF('processesTable').selection.length === PF('processesTable').cfg.paginator.rowCount )) {
PF('processesTable').selectAllRows();
PF('processesTable').selection=new Array("@all");
$(PF('processesTable').selectionHolder).val('@all');
Expand Down

0 comments on commit be40db8

Please sign in to comment.