Project

General

Profile

Patch #30730 » 0001_add_css_class_option_to_toggle_links.diff

Bernhard Rohloff, 2019-02-01 17:26

View differences:

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
(2-2/3)