roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r541741 - /roller/trunk/web/WEB-INF/jsps/editor/EntryEdit.jsp
Date Fri, 25 May 2007 18:09:05 GMT
Author: agilliland
Date: Fri May 25 11:09:04 2007
New Revision: 541741

URL: http://svn.apache.org/viewvc?view=rev&rev=541741
Log:
fix the way the entry remove button works, it's now functioning like a link instead of posting
unnecessary data to the entry removal action.


Modified:
    roller/trunk/web/WEB-INF/jsps/editor/EntryEdit.jsp

Modified: roller/trunk/web/WEB-INF/jsps/editor/EntryEdit.jsp
URL: http://svn.apache.org/viewvc/roller/trunk/web/WEB-INF/jsps/editor/EntryEdit.jsp?view=diff&rev=541741&r1=541740&r2=541741
==============================================================================
--- roller/trunk/web/WEB-INF/jsps/editor/EntryEdit.jsp (original)
+++ roller/trunk/web/WEB-INF/jsps/editor/EntryEdit.jsp Fri May 25 11:09:04 2007
@@ -213,8 +213,11 @@
         
         <s:submit key="weblogEdit.save" onclick="document.getElementById('entryAdd_bean_status').value='DRAFT';"
/>
         
-        <s:submit key="weblogEdit.deleteEntry" action="entryRemove" />
-        <s:hidden name="removeId" value="%{entry.id}" />
+        <s:url id="removeUrl" action="entryRemove">
+            <s:param name="weblog" value="actionWeblog.handle" />
+            <s:param name="removeId" value="%{entry.id}" />
+        </s:url>
+        <input type="button" value="<s:text name="weblogEdit.deleteEntry"/>" onclick="window.location='<s:property
value="removeUrl" escape="false" />'" />
         
         <input type="button" name="fullPreview"
                             value='<s:text name="weblogEdit.fullPreviewMode" />'



Mime
View raw message