@@ -1,16 +1,16 | |||
|
1 |
# |
|
|
2 |
# Copyright (C) 2006-20 |
|
|
1 | # Redmine - project management software | |
|
2 | # Copyright (C) 2006-2011 Jean-Philippe Lang | |
|
3 | 3 | # |
|
4 | 4 | # This program is free software; you can redistribute it and/or |
|
5 | 5 | # modify it under the terms of the GNU General Public License |
|
6 | 6 | # as published by the Free Software Foundation; either version 2 |
|
7 | 7 | # of the License, or (at your option) any later version. |
|
8 |
# |
|
|
8 | # | |
|
9 | 9 | # This program is distributed in the hope that it will be useful, |
|
10 | 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | 12 | # GNU General Public License for more details. |
|
13 |
# |
|
|
13 | # | |
|
14 | 14 | # You should have received a copy of the GNU General Public License |
|
15 | 15 | # along with this program; if not, write to the Free Software |
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
@@ -24,7 +24,7 module JournalsHelper | |||
|
24 | 24 | links << link_to_remote(image_tag('comment.png'), |
|
25 | 25 | { :url => {:controller => 'journals', :action => 'new', :id => issue, :journal_id => journal} }, |
|
26 | 26 | :title => l(:button_quote)) if options[:reply_links] |
|
27 |
links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes", |
|
|
27 | links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes", | |
|
28 | 28 | { :controller => 'journals', :action => 'edit', :id => journal }, |
|
29 | 29 | :title => l(:button_edit)) if editable |
|
30 | 30 | end |
@@ -34,7 +34,7 module JournalsHelper | |||
|
34 | 34 | css_classes << " editable" if editable |
|
35 | 35 | content_tag('div', content, :id => "journal-#{journal.id}-notes", :class => css_classes) |
|
36 | 36 | end |
|
37 | ||
|
37 | ||
|
38 | 38 | def link_to_in_place_notes_editor(text, field_id, url, options={}) |
|
39 | 39 | onclick = "new Ajax.Request('#{url_for(url)}', {asynchronous:true, evalScripts:true, method:'get'}); return false;" |
|
40 | 40 | link_to text, '#', options.merge(:onclick => onclick) |
General Comments 0
You need to be logged in to leave comments.
Login now