This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release18.12 by this push:
     new 3b1490e61b Fixed: When you add a party content the party profile 
screen does not refresh (OFBIZ-6709)
3b1490e61b is described below

commit 3b1490e61bfd03314927a641953ff7e485a54d5c
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."
    
    Conflicts handled by hand
---
 applications/party/webapp/partymgr/static/PartyProfileContent.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/applications/party/webapp/partymgr/static/PartyProfileContent.js 
b/applications/party/webapp/partymgr/static/PartyProfileContent.js
index 17f35dac14..8539654793 100644
--- a/applications/party/webapp/partymgr/static/PartyProfileContent.js
+++ b/applications/party/webapp/partymgr/static/PartyProfileContent.js
@@ -54,7 +54,12 @@ function uploadCompleted(){
     // to the page partyContentList
     jQuery("#partyContentList").html(iframePartyContentList);
 
-    jQuery('#progressBarSavingMsg').html(uiLabelJsonObjects.CommonCompleted);
+    // 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);
 

Reply via email to