cutlass_js_rails 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcebbf4ffbc31164c82755387cf12f22d0d25471
|
4
|
+
data.tar.gz: a8c67b45e4a64369aa25c8276adafb520e848416
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da69c20508c32fcdaf24928fb9b2989e9d589823988843e0c48b52ca0daea551c07a6cea0420ae5225d671ea4844b57b86f86b709d9e4577f400494e77e4452c
|
7
|
+
data.tar.gz: 4dd4d279795de08b0209a916bce402edda2a598aa171633824db28ffaa539321f34e1bdf6d2e04a9ef7e136ff1783dda06205722e684e19d7aad11e7d95d1f5b
|
@@ -26,11 +26,16 @@ Cutlass.removeActive = function($input){
|
|
26
26
|
}
|
27
27
|
|
28
28
|
Cutlass.animateFields = function(){
|
29
|
+
//some of the inputs get hidden, so we show them all here.
|
29
30
|
$('.Cutlass-input-text, .Cutlass-input-select, .Cutlass-input-select--large, .Cutlass-input-radio, .Cutlass-input-toggler, .Cutlass-input-link').addClass('s-shown');
|
30
|
-
|
31
|
+
|
32
|
+
//Make the hidden fields visible first
|
33
|
+
$('.Cutlass-item').not(':visible').addClass('s-shown');
|
34
|
+
//Then animate in the ones that are visible one by one.
|
35
|
+
$('.Cutlass-item').filter(':visible').each(function(i){
|
31
36
|
var $el = $(this)
|
32
37
|
setTimeout(function(){
|
33
38
|
$el.addClass('s-shown')
|
34
|
-
}, i*
|
39
|
+
}, i*100)
|
35
40
|
})
|
36
41
|
}
|