Skip to content

Commit

Permalink
(#2960) Do not show progress bar on interim page actions
Browse files Browse the repository at this point in the history
  • Loading branch information
squaregoldfish committed Sep 6, 2024
1 parent 50951b6 commit b6bae08
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions WebApp/WebContent/dataset/internal_calibration.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
partialSubmit="true"
process="selectedColumn selectedRows"
update=":plotPageForm:error :plot1Form:plot1Data :plot1Form:plot1Flags :plot2Form:plot2Data :plot2Form:plot2Flags :statusForm"
onstart="itemLoading(UPDATE_DATA)"
onstart="itemLoading(UPDATE_DATA, true)"
oncomplete="calibrationUpdated()" />

<p:remoteCommand name="generateUserQCComments"
Expand All @@ -36,7 +36,7 @@
action="#{internalCalibrationBean.setCalibrationUse}"
process="useCalibrations useCalibrationsMessage selectedColumn selectedRows"
update=":plotPageForm:error :plot1Form:plot1Data :plot1Form:plot1Flags :plot2Form:plot2Data :plot2Form:plot2Flags :statusForm"
onstart="itemLoading(UPDATE_DATA)"
onstart="itemLoading(UPDATE_DATA, false)"
oncomplete="calibrationUpdated()" />
</ui:define>

Expand Down
4 changes: 2 additions & 2 deletions WebApp/WebContent/dataset/manual_qc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
partialSubmit="true"
process="selectedColumn selectedRows"
update=":plotPageForm:error :plot1Form:plot1Data :plot1Form:plot1Flags :plot2Form:plot2Data :plot2Form:plot2Flags :statusForm"
onstart="itemLoading(UPDATE_DATA)"
onstart="itemLoading(UPDATE_DATA, true)"
oncomplete="qcFlagsAccepted()" />

<p:remoteCommand name="generateUserQCComments"
Expand All @@ -36,7 +36,7 @@
action="#{sessionScope[beanName].applyManualFlag}"
process="selectedColumn selectedRows manualFlag manualComment"
update=":plotPageForm:error :plot1Form:plot1Data :plot1Form:plot1Flags :plot2Form:plot2Data :plot2Form:plot2Flags :statusForm"
onstart="itemLoading(UPDATE_DATA)"
onstart="itemLoading(UPDATE_DATA, false)"
oncomplete="qcFlagsAccepted()" />

</ui:define>
Expand Down
4 changes: 2 additions & 2 deletions WebApp/WebContent/dataset/position_qc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
partialSubmit="true"
process="selectedColumn selectedRows"
update=":plotPageForm:error :plot1Form:plot1Data :plot1Form:plot1Flags :plot2Form:plot2Data :plot2Form:plot2Flags :statusForm"
onstart="itemLoading(UPDATE_DATA)"
onstart="itemLoading(UPDATE_DATA, true)"
oncomplete="qcFlagsAccepted()" />

<p:remoteCommand name="generateUserQCComments"
Expand All @@ -36,7 +36,7 @@
action="#{sessionScope[beanName].applyManualFlag}"
process="selectedColumn selectedRows manualFlag manualComment"
update=":plotPageForm:error :plot1Form:plot1Data :plot1Form:plot1Flags :plot2Form:plot2Data :plot2Form:plot2Flags :statusForm"
onstart="itemLoading(UPDATE_DATA)"
onstart="itemLoading(UPDATE_DATA, false)"
oncomplete="qcFlagsAccepted()" />

</ui:define>
Expand Down
12 changes: 10 additions & 2 deletions WebApp/WebContent/resources/script/plotPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@ function plotLoading(index, mode) {
}
}

itemLoading(item);
itemLoading(item, false);
}

function itemLoading(item) {
function itemLoading(item, showProgressBar) {
loadingItems = loadingItems | item;
PF('pleaseWait').show();

if (showProgressBar) {
startProgressBarUpdater();
$("#pleaseWaitForm\\:progressName").show();
PF('progressBar').jq.show();
} else {
$("#pleaseWaitForm\\:progressName").hide();
PF('progressBar').jq.hide();
}
}

function itemNotLoading(item) {
Expand Down

0 comments on commit b6bae08

Please sign in to comment.