]> source.dussan.org Git - redmine.git/commitdiff
New relation form Cancel link is broken with Chrome 21 (#11036).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 20 Sep 2012 16:59:37 +0000 (16:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 20 Sep 2012 16:59:37 +0000 (16:59 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10436 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issue_relations/_form.html.erb

index a1db3802fde6b59cbeb48b23f55abfa2c0f90249..29b7f0f147025e0fc79e37b64507947bf3f05798 100644 (file)
@@ -6,7 +6,7 @@
 <%= l(:field_delay) %>: <%= f.text_field :delay, :size => 3 %> <%= l(:label_day_plural) %>
 </span>
 <%= submit_tag l(:button_add) %>
-<%= toggle_link l(:button_cancel), 'new-relation-form'%>
+<%= link_to_function l(:button_cancel), '$("#new-relation-form").hide();'%>
 </p>
 
 <%= javascript_tag "observeAutocompleteField('relation_issue_to_id', '#{escape_javascript auto_complete_issues_path(:project_id => @project, :scope => (Setting.cross_project_issue_relations? ? 'all' : nil))}')" %>