fuelux-rails 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/fuelux-rails/version.rb +1 -1
- data/vendor/assets/javascripts/fuelux.js +0 -1
- data/vendor/assets/javascripts/fuelux/radio.js +16 -4
- data/vendor/assets/javascripts/fuelux/wizard.js +13 -13
- data/vendor/toolkit/fuelux.less +0 -1
- data/vendor/toolkit/fuelux/datagrid.less +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29b394ec2968caffe8b18d7223cabed066be8e6d
|
4
|
+
data.tar.gz: 0ced4a787887051466ea986e11789f6d659fa1ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f2f96746d016ed70d0bc551245351cdc09a6bed2322ae3ca78a421c490bde4279b58514f31b1c86faee5eb1cdf6f4e5df691c103611a6159842766aabff78b2
|
7
|
+
data.tar.gz: 53cd6334e97d12e9131733645a1557be9d11038beae946f9fe3aecb38e95f9dd28d92752876db6cf474b414192a60ddd4b7fb629bb7cbe9b69d416bca8702e99
|
data/README.md
CHANGED
data/lib/fuelux-rails/version.rb
CHANGED
@@ -38,10 +38,7 @@
|
|
38
38
|
$radio = $radio || this.$radio;
|
39
39
|
|
40
40
|
var checked = $radio.is(':checked');
|
41
|
-
var 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
|
-
|
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
|
-
|
91
|
+
this.$element.find('.steps > li').each(function () {
|
92
92
|
totalWidth += $(this).outerWidth();
|
93
93
|
});
|
94
94
|
var containerWidth = 0;
|
95
|
-
|
96
|
-
|
95
|
+
if (this.$element.find('.actions').length) {
|
96
|
+
containerWidth = this.$element.width() - this.$element.find('.actions').first().outerWidth();
|
97
97
|
} else {
|
98
|
-
containerWidth =
|
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
|
-
|
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
|
-
|
109
|
-
|
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
|
-
|
111
|
+
this.$element.find('.steps').first().attr('style','margin-left: 0');
|
112
112
|
} else {
|
113
|
-
|
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 };
|
data/vendor/toolkit/fuelux.less
CHANGED
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.
|
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-
|
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.
|
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
|