Sha256: ecad59d6899f4a0fd92198ec67a03cec47e3f398cead4607b6c4325ec7f62917
Contents?: true
Size: 845 Bytes
Versions: 25
Compression:
Stored size: 845 Bytes
Contents
- tab = local_assigns[:tab] #new_ticket_tabs %ul.nav.nav-tabs.nav-append-content - @ticket_types.keys.each do |type| %li %a{class: "#{type.underscore}-tab", href: "##{type.underscore}-tab", "data-toggle" => "tab"} = type.humanize .tab-content - @ticket_types.keys.each do |type| .tab-pane{id: "#{type.underscore}-tab"} = render "#{type.underscore}_form", ticket: @ticket_types[type] - if tab.present? :javascript $(function() { $('#new_ticket_tabs a.#{tab}-tab').tab('show'); }); - else :coffeescript $ -> $('#new_ticket_tabs a:first').tab('show') :coffeescript $ -> $('#new_ticket_tabs a[data-toggle="tab"]').on 'shown.bs.tab', (event) -> $tab = $($(event.target).attr("href")) $tab.find("input[type=text]:first").focus()
Version data entries
25 entries across 25 versions & 1 rubygems