From 1b082886cfb5d2e5bc080e08d1a6a2571a4fe40c Mon Sep 17 00:00:00 2001 From: rkv Date: Tue, 5 Feb 2013 12:13:17 +0000 Subject: [PATCH] Fix for mantis #0022086: After "rename the document" operation it's impossible to transform this new name to text on the screen instead of input field. --- .../Siman/WebContent/jsp/editContents.jsp | 38 ++++++++----------- .../WebContent/study/displayStudyStep.jsp | 5 +-- .../splat/simer/AbstractDisplayAction.java | 8 ++++ .../org/splat/simer/EditDocumentAction.java | 1 + 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Workspace/Siman/WebContent/jsp/editContents.jsp b/Workspace/Siman/WebContent/jsp/editContents.jsp index 6929ece..95bed8f 100644 --- a/Workspace/Siman/WebContent/jsp/editContents.jsp +++ b/Workspace/Siman/WebContent/jsp/editContents.jsp @@ -2,13 +2,7 @@ pageEncoding="ISO-8859-1" %> <%@ taglib prefix="s" uri="/struts-tags" -%><% - String action = request.getParameter("action"); - String index = request.getParameter("index"); %> -<%=action%> -<%=index%> - develop @@ -30,7 +24,7 @@    -     +         " border="none"/> @@ -39,8 +33,8 @@ - - + + " border="none" title="" /> " border="none" title=""/> @@ -52,7 +46,7 @@ - +
" style="position:absolute; display:none; top:0px; left:0px; z-index:10000;" onmouseover="javascript:_mouseOverContext=true;" onmouseout="javascript:_mouseOverContext=false;">
@@ -66,10 +60,10 @@ " border="none" title=""/> - - + + - + " /> " /> @@ -90,8 +84,8 @@ -    - +    + @@ -101,8 +95,8 @@ " border="none" title=""/> :  -    - +    + @@ -115,8 +109,8 @@   -    - +    + @@ -156,8 +150,8 @@ -    - +    + @@ -165,7 +159,7 @@ - + diff --git a/Workspace/Siman/WebContent/study/displayStudyStep.jsp b/Workspace/Siman/WebContent/study/displayStudyStep.jsp index 8039f65..95b721d 100644 --- a/Workspace/Siman/WebContent/study/displayStudyStep.jsp +++ b/Workspace/Siman/WebContent/study/displayStudyStep.jsp @@ -170,10 +170,7 @@
- - - - +
diff --git a/Workspace/Siman/src/org/splat/simer/AbstractDisplayAction.java b/Workspace/Siman/src/org/splat/simer/AbstractDisplayAction.java index e60f604..6b03392 100644 --- a/Workspace/Siman/src/org/splat/simer/AbstractDisplayAction.java +++ b/Workspace/Siman/src/org/splat/simer/AbstractDisplayAction.java @@ -53,4 +53,12 @@ public abstract class AbstractDisplayAction extends Action { // ============================================================================================================================== public abstract String getWriteAccess (); + + /** + * Get the action. + * @return the action + */ + public String getCurAction() { + return _action; + } } \ No newline at end of file diff --git a/Workspace/Siman/src/org/splat/simer/EditDocumentAction.java b/Workspace/Siman/src/org/splat/simer/EditDocumentAction.java index 795572d..135444c 100644 --- a/Workspace/Siman/src/org/splat/simer/EditDocumentAction.java +++ b/Workspace/Siman/src/org/splat/simer/EditDocumentAction.java @@ -75,6 +75,7 @@ public class EditDocumentAction extends DisplayStudyStepAction { if (todo == Execute.renameDocument) { getPublicationService().rename(doc, _title); // Useless to update the document presentation + setAction(null); } else if (todo == Execute.accept) { getPublicationService().actualize(doc); _openStudy.update(doc); -- 2.30.2