This is an automated email from the ASF dual-hosted git repository. jleroux pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new ac43745626 Fixed: When you add a party content the party profile screen does not refresh (OFBIZ-6709) ac43745626 is described below commit ac43745626093bd72ae497c9bd748ab70f4b1b93 Author: Jacques Le Roux <jacques.le.r...@les7arts.com> AuthorDate: Wed Sep 11 11:35:34 2024 +0200 Fixed: When you add a party content the party profile screen does not refresh (OFBIZ-6709) There is a problem showing the result of upload either if it's rejected or not. In all case it shows "Maybe for security reason your file has not been accepted, check the log." The best solution is to temporarily show this information, say 10 sec. No need to show if it's a success, the list above shows it anyway. That's what I did but 7 sec is enough to read the message. Massage that is a bit longer now, but more explicit: "If you don't see your file in Party Content list above, it has been rejected for security reason. Check the log." --- .../party/webapp/partymgr/static/PartyProfileContent.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/applications/party/webapp/partymgr/static/PartyProfileContent.js b/applications/party/webapp/partymgr/static/PartyProfileContent.js index 2f51b8d839..1fb701ae95 100644 --- a/applications/party/webapp/partymgr/static/PartyProfileContent.js +++ b/applications/party/webapp/partymgr/static/PartyProfileContent.js @@ -54,14 +54,16 @@ function uploadCompleted() { // to the page partyContentList jQuery("#partyContentList").html(iframePartyContentList); - if (iframePartyContentList.includes(uiLabelJsonObjects.PartyNoContent)) { - jQuery('#progressBarSavingMsg').html(uiLabelJsonObjects.CommonCompleted); - } else { - jQuery('#progressBarSavingMsg').html("Maybe for security reason your file has not been accepted, check the log."); - } + // Explanation in case of rejected file + jQuery('#progressBarSavingMsg').html("If you don't see your file in Party Content list above, it has been rejected for security reason. Check the log."); + + // Remove explanation in case of rejected file + setTimeout(() => { jQuery('#progressBarSavingMsg').hide(); }, 7000); + // reset progressbar jQuery("#progress_bar").progressbar("option", "value", 0); + // remove iFrame jQuery("#target_upload").remove(); return;