Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bugfix

  • Loading branch information...
commit 93d661752deeef2a9bcb61e3d72fc80e2134490a 1 parent fa951bc
@mcanato authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/twitter-bootstrap-markup-rails/components/progress_bar.rb
View
7 lib/twitter-bootstrap-markup-rails/components/progress_bar.rb
@@ -20,7 +20,9 @@ def default_options
{
:class => nil,
:bootstrap_class_prefix => "progress",
- :type => [],
+ :striped => false,
+ :animated => false,
+ :type => nil,
:html_options => {}
}
end
@@ -29,7 +31,8 @@ def build_class
classes = [ options[:class] ]
classes << options[:bootstrap_class_prefix]
classes << "#{options[:bootstrap_class_prefix]}-#{options[:type]}" if options[:type]
- classes << "active" if options[:active]
+ classes << "#{options[:bootstrap_class_prefix]}-striped" if options[:striped]
+ classes << "active" if options[:animated]
classes.join(" ")
end
Please sign in to comment.
Something went wrong with that request. Please try again.