Skip to content
Browse files

Fixed the Save and Preview links on the wiki edit pages. Previously, …

…they weren't retaining the 'update' ID, and so the AJAX response from saving a plugin wiki page was filling the entire page.
  • Loading branch information...
1 parent 8bacf12 commit 8e2e3f0a935c4a4f949121d9ccc94bcab341f168 @pledbrook pledbrook committed Feb 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 grails.org/grails-app/views/content/_editActions.gsp
View
4 grails.org/grails-app/views/content/_editActions.gsp
@@ -22,14 +22,14 @@
</shiro:lacksRole>
<li>
<a href="${href}" class="actionIcon"
- onclick="YAHOO.util.Connect.setForm('${editFormName}');YAHOO.util.Connect.asyncRequest('POST', '/preview/${content?.title}', {success: function(o){YAHOO.util.Dom.get('previewPane').innerHTML = o.responseText;showPreview();}, failure: function(o){}});return false;" class="actionIcon">
+ onclick="YAHOO.util.Connect.setForm('${editFormName}');YAHOO.util.Connect.asyncRequest('POST', '/preview/${content?.title}', {success: function(o){YAHOO.util.Dom.get('previewPane').innerHTML = o.responseText;showPreview();}, failure: function(o){}}, 'update=${updateElement}');return false;" class="actionIcon">
<r:img uri="/images/icon-preview.png" width="18" height="15" alt="Icon Edit" class="inlineIcon" border="0"/>
<span>Preview</span>
</a>
</li>
<li>
<a href="${href}" class="actionIcon"
- onclick="YAHOO.util.Connect.setForm('${editFormName}');YAHOO.util.Connect.asyncRequest('POST', '/save/${content?.title}', {success: function(o){showCommentPost();YAHOO.util.Dom.get('${updateElement}').innerHTML = o.responseText; fadeMessages()}, failure: function(o){}});return false;" class="actionIcon">
+ onclick="YAHOO.util.Connect.setForm('${editFormName}');YAHOO.util.Connect.asyncRequest('POST', '/save/${content?.title}', {success: function(o){showCommentPost();YAHOO.util.Dom.get('${updateElement}').innerHTML = o.responseText; fadeMessages()}, failure: function(o){}}, 'update=${updateElement}');return false;" class="actionIcon">
<r:img uri="/images/icon-save.png" width="15" height="15" alt="Icon Save" class="inlineIcon" border="0"/>
<span>Save</span>
</a>

0 comments on commit 8e2e3f0

Please sign in to comment.
Something went wrong with that request. Please try again.