twitter-bootstrap-calendar 0.0.3experiment → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Twitter
2
2
  module Bootstrap
3
3
  module Calendar
4
- VERSION = "0.0.3experiment"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -1,14 +1,13 @@
1
1
  function tbsCalendarSetMaxHeight(){
2
2
  var maxHeight = -1;
3
- if($('.calendar_grid').length && !$('.calendar_grid').data('disable-autoheight')){
4
- $('.calendar_grid .week .span1').each(function() {
5
- maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();
6
- });
7
3
 
8
- $('.calendar_grid .week .span1').each(function() {
9
- $(this).height(maxHeight);
10
- });
11
- }
4
+ $('.calendar_grid .week .span1').each(function() {
5
+ maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();
6
+ });
7
+
8
+ $('.calendar_grid .week .span1').each(function() {
9
+ $(this).height(maxHeight);
10
+ });
12
11
  }
13
12
 
14
13
  $(document).on('page:load', function() {
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-bootstrap-calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3experiment
5
- prerelease: 5
4
+ version: 0.0.3
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Christiansen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-20 00:00:00.000000000 Z
12
+ date: 2013-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -86,9 +86,8 @@ files:
86
86
  - lib/twitter/bootstrap/calendar/engine.rb
87
87
  - lib/twitter/bootstrap/calendar/version.rb
88
88
  - lib/twitter-bootstrap-calendar.rb
89
- - vendor/assets/javascripts/twitter-bootstrap-calendar/datetime_formatters.rb
90
89
  - vendor/assets/javascripts/twitter-bootstrap-calendar/index.js
91
- - vendor/assets/stylesheets/twitter-bootstrap-calendar/index.css
90
+ - vendor/assets/stylesheets/twitter-bootstrap-calendar/index.css.scss
92
91
  - app/helpers/bootstrap_calendar_helper.rb
93
92
  - Rakefile
94
93
  - README.md
@@ -109,9 +108,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
108
  required_rubygems_version: !ruby/object:Gem::Requirement
110
109
  none: false
111
110
  requirements:
112
- - - ! '>'
111
+ - - ! '>='
113
112
  - !ruby/object:Gem::Version
114
- version: 1.3.1
113
+ version: '0'
115
114
  requirements: []
116
115
  rubyforge_project:
117
116
  rubygems_version: 1.8.24
@@ -1,17 +0,0 @@
1
- [Time].map do |klass|
2
- klass::DATE_FORMATS[:wordy] = lambda { |date| date.strftime("%B %e, %Y at %I:%M %P") }
3
- klass::DATE_FORMATS[:sortable] = lambda { |date| date.strftime("%Y-%m-%d:%I:%M %P") }
4
- klass::DATE_FORMATS[:time_only] = lambda { |date| date.strftime("%I:%M %P") }
5
- klass::DATE_FORMATS[:date_only] = lambda { |date| date.strftime("%B %e, %Y") }
6
- end
7
-
8
- [Date].map do |klass|
9
- klass::DATE_FORMATS[:wordy] = lambda { |date| date.strftime("%B %e, %Y") }
10
- klass::DATE_FORMATS[:month_and_day] = lambda { |date| date.strftime("%B %e") }
11
- klass::DATE_FORMATS[:sortable] = lambda { |date| date.strftime("%Y-%m-%d") }
12
- klass::DATE_FORMATS[:american] = lambda { |date| date.strftime("%m/%d/%Y") }
13
- klass::DATE_FORMATS[:month_and_year] = lambda { |date| date.strftime("%B %Y") }
14
- end
15
-
16
- Time::DATE_FORMATS[:default] = "%Y-%m-%d %I:%M %P"
17
-