Fix well-formedness issue in rollback.rhtml and validity in that and edit.rhtml.

This commit is contained in:
Jacques Distler 2007-03-02 18:46:40 -06:00
parent 43dbd8712e
commit 6f81cb1207
2 changed files with 6 additions and 7 deletions

View file

@ -9,12 +9,11 @@
<%= render 'wiki_words_help' %> <%= render 'wiki_words_help' %>
</div> </div>
<div id="editForm">
<%= form_tag({ :action => 'save', :web => @web.address, :id => @page.name }, <%= form_tag({ :action => 'save', :web => @web.address, :id => @page.name },
{ 'id' => 'editForm', 'method' => 'post', 'onsubmit' => 'cleanAuthorName()', { 'id' => 'editForm', 'method' => 'post', 'onsubmit' => 'cleanAuthorName()',
'accept-charset' => 'utf-8' }) %> 'accept-charset' => 'utf-8' }) %>
<div>
<textarea name="content" id="content"><%= h(@flash[:content] || @page.content.delete("\x01-\x08\x0B\x0C\x0E-\x1F")) %></textarea> <textarea name="content" id="content" rows="24" cols="60"><%= h(@flash[:content] || @page.content.delete("\x01-\x08\x0B\x0C\x0E-\x1F")) %></textarea>
<div id="editFormButtons"> <div id="editFormButtons">
<input type="submit" value="Submit" accesskey="s"/> as <input type="submit" value="Submit" accesskey="s"/> as
<%= text_field_tag :author, @author, <%= text_field_tag :author, @author,
@ -27,8 +26,8 @@
<span class="unlock">(unlocks page)</span> <span class="unlock">(unlocks page)</span>
</span> </span>
</div> </div>
<%= end_form_tag %>
</div> </div>
<%= end_form_tag %>
<script type="text/javascript"> <script type="text/javascript">
function cleanAuthorName() { function cleanAuthorName() {

View file

@ -11,11 +11,11 @@
<%= render 'wiki_words_help' %> <%= render 'wiki_words_help' %>
</div> </div>
<div id="editForm">
<%= form_tag({:web => @web.address, :action => 'save', :id => @page.name}, <%= form_tag({:web => @web.address, :action => 'save', :id => @page.name},
{ :id => 'editForm', :method => 'post', :onsubmit => 'cleanAuthorName();', { :id => 'editForm', :method => 'post', :onsubmit => 'cleanAuthorName();',
'accept-charset' => 'utf-8' }) %> 'accept-charset' => 'utf-8' }) %>
<textarea name="content" id="content"><%= @revision.content %></textarea> <div>
<textarea name="content" id="content" rows="24" cols="60"><%= h(@revision.content.delete("\x01-\x08\x0B\x0C\x0E-\x1F")) %></textarea>
<div id="editFormButtons"> <div id="editFormButtons">
<input type="submit" value="Update" accesskey="u" /> as <input type="submit" value="Update" accesskey="u" /> as
<input type="text" name="author" id="authorName" value="<%= @author %>" <input type="text" name="author" id="authorName" value="<%= @author %>"
@ -27,8 +27,8 @@
<span class="unlock">(unlocks page)</span> <span class="unlock">(unlocks page)</span>
</span> </span>
</div> </div>
<%= end_form_tag %>
</div> </div>
<%= end_form_tag %>
<script type="text/javascript"> <script type="text/javascript">
function cleanAuthorName() { function cleanAuthorName() {