fuelux-rails 2.4.0 → 2.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 876254acf366112d285da4c2fc8ece5cbe1521c7
4
- data.tar.gz: b199e7d30c869236a39498555817c8eb8362d979
3
+ metadata.gz: 29b394ec2968caffe8b18d7223cabed066be8e6d
4
+ data.tar.gz: 0ced4a787887051466ea986e11789f6d659fa1ab
5
5
  SHA512:
6
- metadata.gz: 0079ab09e49b41a89900c9f84ed17b3b52579cdc1f05d727b0b0b8bf99474cf3c3fb5428366b2a9820f85a19b572472a4fb4f077c619d43c5faaecf64ee6eed3
7
- data.tar.gz: 60e44bf14bf4d22a882803fabb9c2fad0338fba7ad136c0b2ee26141291f67da5f9582b745e2578837689abd2a7f1c30d2109076af840d83175e55ccb15a1770
6
+ metadata.gz: 4f2f96746d016ed70d0bc551245351cdc09a6bed2322ae3ca78a421c490bde4279b58514f31b1c86faee5eb1cdf6f4e5df691c103611a6159842766aabff78b2
7
+ data.tar.gz: 53cd6334e97d12e9131733645a1557be9d11038beae946f9fe3aecb38e95f9dd28d92752876db6cf474b414192a60ddd4b7fb629bb7cbe9b69d416bca8702e99
data/README.md CHANGED
@@ -57,3 +57,8 @@ $(document).ready(function(){
57
57
  /* Your javascripts goes here... */
58
58
  });
59
59
  ```
60
+
61
+ ## Updating to a Specific Version of FuelUX
62
+ ```bash
63
+ $ rake fuelux_rails:update TAG=2.4.1
64
+ ```
@@ -1,3 +1,3 @@
1
1
  module FueluxRails
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.1"
3
3
  end
@@ -10,4 +10,3 @@
10
10
  //= require fuelux/spinner
11
11
  //= require fuelux/tree
12
12
  //= require fuelux/wizard
13
-
@@ -38,10 +38,7 @@
38
38
  $radio = $radio || this.$radio;
39
39
 
40
40
  var checked = $radio.is(':checked');
41
- var disabled = $radio.is(':disabled');
42
-
43
- // reset classes
44
- this.$icon.removeClass('checked').removeClass('disabled');
41
+ var disabled = !!$radio.prop('disabled');
45
42
 
46
43
  this.$icon.removeClass('checked disabled');
47
44
 
@@ -74,6 +71,21 @@
74
71
 
75
72
  this.resetGroup();
76
73
  this.setState(radio);
74
+ },
75
+
76
+ check: function () {
77
+ this.resetGroup();
78
+ this.$radio.prop('checked', true);
79
+ this.setState(this.$radio);
80
+ },
81
+
82
+ uncheck: function () {
83
+ this.$radio.prop('checked', false);
84
+ this.setState(this.$radio);
85
+ },
86
+
87
+ isChecked: function () {
88
+ return this.$radio.is(':checked');
77
89
  }
78
90
  };
79
91
 
@@ -80,37 +80,37 @@
80
80
 
81
81
  // set display of target element
82
82
  var target = $currentStep.data().target;
83
- this.$element.find('.step-pane').removeClass('active');
83
+ this.$element.next('.step-content').find('.step-pane').removeClass('active');
84
84
  $(target).addClass('active');
85
85
 
86
86
  // reset the wizard position to the left
87
- $('.wizard .steps').attr('style','margin-left: 0');
87
+ this.$element.find('.steps').first().attr('style','margin-left: 0');
88
88
 
89
89
  // check if the steps are wider than the container div
90
90
  var totalWidth = 0;
91
- $('.wizard .steps > li').each(function () {
91
+ this.$element.find('.steps > li').each(function () {
92
92
  totalWidth += $(this).outerWidth();
93
93
  });
94
94
  var containerWidth = 0;
95
- if ($('.wizard .actions').length) {
96
- containerWidth = $('.wizard').width() - $('.wizard .actions').outerWidth();
95
+ if (this.$element.find('.actions').length) {
96
+ containerWidth = this.$element.width() - this.$element.find('.actions').first().outerWidth();
97
97
  } else {
98
- containerWidth = $('.wizard').width();
98
+ containerWidth = this.$element.width();
99
99
  }
100
100
  if (totalWidth > containerWidth) {
101
101
 
102
102
  // set the position so that the last step is on the right
103
103
  var newMargin = totalWidth - containerWidth;
104
- $('.wizard .steps').attr('style','margin-left: -' + newMargin + 'px');
104
+ this.$element.find('.steps').first().attr('style','margin-left: -' + newMargin + 'px');
105
105
 
106
106
  // set the position so that the active step is in a good
107
107
  // position if it has been moved out of view
108
- if ($('.wizard li.active').position().left < 200) {
109
- newMargin += $('.wizard li.active').position().left - 200;
108
+ if (this.$element.find('li.active').first().position().left < 200) {
109
+ newMargin += this.$element.find('li.active').first().position().left - 200;
110
110
  if (newMargin < 1) {
111
- $('.wizard .steps').attr('style','margin-left: 0');
111
+ this.$element.find('.steps').first().attr('style','margin-left: 0');
112
112
  } else {
113
- $('.wizard .steps').attr('style','margin-left: -' + newMargin + 'px');
113
+ this.$element.find('.steps').first().attr('style','margin-left: -' + newMargin + 'px');
114
114
  }
115
115
  }
116
116
  }
@@ -170,10 +170,10 @@
170
170
 
171
171
  if(step >= 1 && step <= this.numSteps) {
172
172
  this.currentStep = step;
173
- this.setState();
173
+ this.setState();
174
174
  }
175
175
 
176
- retVal = this;
176
+ retVal = this;
177
177
  }
178
178
  else {
179
179
  retVal = { step: this.currentStep };
@@ -13,4 +13,3 @@
13
13
  @import "fuelux/spinner.less";
14
14
  @import "fuelux/tree.less";
15
15
  @import "fuelux/wizard.less";
16
-
@@ -50,6 +50,7 @@
50
50
 
51
51
  .sortable {
52
52
  cursor: pointer;
53
+ position: relative;
53
54
 
54
55
  &:hover {
55
56
  .gradientBar(@tableBackgroundAccent, @tableBackgroundAccentDark, @textColor, 'none');
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuelux-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Baldwin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-26 00:00:00.000000000 Z
11
+ date: 2013-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  requirements: []
208
208
  rubyforge_project: fuelux-rails
209
- rubygems_version: 2.1.4
209
+ rubygems_version: 2.1.5
210
210
  signing_key:
211
211
  specification_version: 4
212
212
  summary: Fuel UX for Rails 3.1 Asset Pipeline