From: rkv Date: Tue, 5 Feb 2013 12:13:17 +0000 (+0000) Subject: Fix for mantis #0022086: After "rename the document" operation it's impossible to... X-Git-Tag: Root_Delivery2_2013_04_22~149 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b082886cfb5d2e5bc080e08d1a6a2571a4fe40c;p=tools%2Fsiman.git 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. --- 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);