@@ -983,6 +983,10 module ApplicationHelper | |||||
983 | }.merge(options) |
|
983 | }.merge(options) | |
984 | end |
|
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 | def back_url_hidden_field_tag |
|
990 | def back_url_hidden_field_tag | |
987 | back_url = params[:back_url] || request.env['HTTP_REFERER'] |
|
991 | back_url = params[:back_url] || request.env['HTTP_REFERER'] | |
988 | back_url = CGI.unescape(back_url.to_s) |
|
992 | back_url = CGI.unescape(back_url.to_s) |
General Comments 0
You need to be logged in to leave comments.
Login now