app/views/wiki/edit_menu.rhtml in Pimki-1.4.092 vs app/views/wiki/edit_menu.rhtml in Pimki-1.5.092
- old
+ new
@@ -22,10 +22,10 @@
<% end %>
</select>
</p>
<p>For the above options you can choose if you want to limit the number of results. Enter the number of items you wish, or 0 for all items: <input type="textfield" size="20", name="limit" value="<%= @list_limit %>" /></p>
<p><input type="radio" name="type" value="user" <%= 'checked' if @menu_type == 'user' %>>Or just write your own menu contents (as a regular Wiki page):
- <textarea name="content" style="width: 400px; height: 300px"><%= @menu_content.content %></textarea>
+ <textarea name="content" style="width: 400px; height: 300px"><%= !@menu_content.nil? && Page === @menu_content ? @menu_content.content : @menu_content %></textarea>
</p>
<% if Page === @menu_content && @menu_content.revisions.length > 1
@menu_content.revisions.each_with_index do |rev, i| %>
<a href='.' onClick="forms.editForm.content.value = unescape('<%= CGI.escape(rev.content).gsub('+', ' ') %>'); return false;">Set menu content to revision <%= i %></a><br />
\ No newline at end of file