bettertabs 1.2 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +5 -0
- data/README.md +10 -0
- data/lib/bettertabs/bettertabs_helper.rb +1 -1
- data/lib/bettertabs/javascripts/jquery.bettertabs.coffee +1 -1
- data/lib/bettertabs/javascripts/jquery.bettertabs.js +1 -1
- data/lib/bettertabs/javascripts/jquery.bettertabs.min.js +1 -1
- data/lib/bettertabs/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -182,6 +182,16 @@ Perhaps the most important CSS rule here is to define `display: none;` for `div.
|
|
182
182
|
Use the [Bettertabs Styles Reference Guide](https://github.com/agoragames/bettertabs/blob/master/lib/bettertabs/stylesheets/README.md) to get a stylesheet that you can use as a starting point.
|
183
183
|
|
184
184
|
|
185
|
+
## How to help make Bettertabs even Better ##
|
186
|
+
|
187
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
188
|
+
* Fork the project
|
189
|
+
* Start a feature/bugfix branch
|
190
|
+
* Commit and push until you are happy with your contribution
|
191
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
192
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
193
|
+
|
194
|
+
|
185
195
|
## Future work ##
|
186
196
|
|
187
197
|
* Improve the Rails testing application: it should use rspec and capybabra to test even the javascript (http://media.railscasts.com/videos/257_request_specs_and_capybara.mov)
|
@@ -57,7 +57,7 @@ module BettertabsHelper
|
|
57
57
|
builder = BettertabsBuilder.new(bettertabs_id, self, selected_tab_id, options)
|
58
58
|
yield(builder)
|
59
59
|
b = builder.render
|
60
|
-
b += javascript_tag("jQuery(function($){ $('##{
|
60
|
+
b += javascript_tag("jQuery(function($){ $('##{options[:id]}').bettertabs(); });") if options[:attach_jquery_bettertabs_inline]
|
61
61
|
b
|
62
62
|
end
|
63
63
|
|
data/lib/bettertabs/version.rb
CHANGED