diff options
Diffstat (limited to 'app/views/journals/_notes_form.html.erb')
-rw-r--r-- | app/views/journals/_notes_form.html.erb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/journals/_notes_form.html.erb b/app/views/journals/_notes_form.html.erb index 5e02df1ca..63b87883a 100644 --- a/app/views/journals/_notes_form.html.erb +++ b/app/views/journals/_notes_form.html.erb @@ -11,8 +11,7 @@ <%= preview_link preview_edit_issue_path(:project_id => @project, :id => @journal.issue), "journal-#{@journal.id}-form", "journal_#{@journal.id}_preview" %> | - <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " + - "Element.show('journal-#{@journal.id}-notes'); return false;" %></p> + <%= link_to l(:button_cancel), '#', :onclick => "$('#journal-#{@journal.id}-form').remove(); $('#journal-#{@journal.id}-notes').show(); return false;" %></p> <div id="journal_<%= @journal.id %>_preview" class="wiki"></div> <% end %> |