@@ -51,7 +51,7 module ApplicationHelper | |||
|
51 | 51 | link_to(name, "#", :onclick => onclick) |
|
52 | 52 | end |
|
53 | 53 | |
|
54 |
def show_and_goto_ |
|
|
54 | def show_and_goto_js(id, options={}) | |
|
55 | 55 | onclick = "Element.show('#{id}'); " |
|
56 | 56 | onclick << (options[:focus] ? "Form.Element.focus('#{options[:focus]}'); " : "this.blur(); ") |
|
57 | 57 | onclick << "Element.scrollTo('#{id}'); " |
@@ -1,5 +1,5 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | <%= show_and_goto_link(l(:button_update), 'update', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if authorize_for('issues', 'edit') %> | |
|
2 | <%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %> | |
|
3 | 3 | <%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time' %> |
|
4 | 4 | <%= watcher_tag(@issue, User.current) %> |
|
5 | 5 | <%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-copy' %> |
General Comments 0
You need to be logged in to leave comments.
Login now