Skip to content
Permalink
Browse files
JUDDI-1013 auto refreshes the page after the save
  • Loading branch information
spyhunter99 committed Jul 4, 2020
1 parent ac88883 commit b2388cb66f11981733201a24de9234c205b217a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
@@ -1071,6 +1071,8 @@ public String SaveBusinessDetails(BusinessEntity be) {
}

return ResourceLoader.GetResource(session, "actions.saved") + " "
+ " <script type=\"text/javascript\">window.location.href='"+
"businessEditor2.jsp?id=" + URLEncoder.encode(saveBusiness.getBusinessEntity().get(0).getBusinessKey(), "UTF8") + "';</script>"
+ "<a href=\"businessEditor2.jsp?id=" + URLEncoder.encode(saveBusiness.getBusinessEntity().get(0).getBusinessKey(), "UTF8")
+ "\">" + StringEscapeUtils.escapeHtml(saveBusiness.getBusinessEntity().get(0).getBusinessKey()) + "</a>";
} catch (Exception ex) {
@@ -64,7 +64,8 @@
}
%>
<% if (!newitem) {
<%
if (!newitem) {
out.write("<i class=\"icon-lock icon-large\"></i> ");
}
%>
@@ -508,6 +508,7 @@ function saveBusiness()
window.console && console.log('postback done ' + url);

$("#alert_results").html('<i class="icon-2x icon-thumbs-up"></i><br>' + msg);
//the msg object is an i18n success message along with a link
$("#alert").modal();
});

0 comments on commit b2388cb

Please sign in to comment.