@@ -983,6 +983,10 module ApplicationHelper | |||
|
983 | 983 | }.merge(options) |
|
984 | 984 | end |
|
985 | 985 | |
|
986 | def link_to_function(name, function, html_options={}) | |
|
987 | content_tag(:a, name, {:href => '#', :onclick => "#{function}; return false;"}.merge(html_options)) | |
|
988 | end | |
|
989 | ||
|
986 | 990 | def back_url_hidden_field_tag |
|
987 | 991 | back_url = params[:back_url] || request.env['HTTP_REFERER'] |
|
988 | 992 | back_url = CGI.unescape(back_url.to_s) |
General Comments 0
You need to be logged in to leave comments.
Login now