Patch #30730 » 0001_add_css_class_option_to_toggle_links.diff
app/helpers/application_helper.rb | ||
---|---|---|
282 | 282 |
onclick << (options[:focus] ? "$('##{options[:focus]}').focus(); " : "this.blur(); ") |
283 | 283 |
onclick << "$(window).scrollTop($('##{options[:focus]}').position().top); " if options[:scroll] |
284 | 284 |
onclick << "return false;" |
285 |
link_to(name, "#", :onclick => onclick) |
|
285 |
link_to(name, "#", :onclick => onclick, :class => options[:class])
|
|
286 | 286 |
end |
287 | 287 | |
288 | 288 |
# Used to format item titles on the activity view |