dlegr250_material_design 0.2.24 → 0.2.25

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: e4d92fb57dfcb5a3ff8dba499730e0bebd78883c
4
- data.tar.gz: a1421d2a46cb7cd784b5aaff14ad48fea29f1e64
3
+ metadata.gz: 2890e63fdec79edf5072d2bc30c8561d7b36bc27
4
+ data.tar.gz: 4b0f450bc32e48770dd0d2782ab80e7a2bd878eb
5
5
  SHA512:
6
- metadata.gz: cbab8742d0993957feed2c698d2e09b1eeceafe08b8f9c215aa77826294ca1298906ce0715316849f1483d6059d2f7d7fadb6c8ff51651dfce9a76926aa19292
7
- data.tar.gz: 598fde207da26695e6932264635970772143364f2b6156a95225ca40b2a8567bffd994496b94de34ba72c94ed3a3995d4736449daab75aeee43853e2e478f20e
6
+ metadata.gz: 96a70a1dd259597a3884e8ed7031999ae0b946d9dac8e12bce9a31e63d993978af9cf0e0b7e66c18dd8533059f3ef578ee99344774ac1c44428ac01623a55af5
7
+ data.tar.gz: 56053149894c416acc3a62b3c5781a98e9ba7a378a044db56eb8bf10459fd4007cb397980d702af8b611322ad8e38dc618e48d6c54077d15906838a265e68076
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.2.24"
2
+ VERSION = "0.2.25"
3
3
  end
@@ -44,15 +44,28 @@ class App.MD.Snackbar
44
44
 
45
45
  @show: () ->
46
46
  @element().html(@text)
47
+ @parent().addClass("has-animating-snackbar")
47
48
  setTimeout (=>
48
49
  @element().addClass(@css_class).addClass("visible")
49
50
  $(".fab").addClass("move-with-snackbar")
50
51
  ), 50
51
52
 
53
+ setTimeout (=>
54
+ @parent().removeClass("has-animating-snackbar")
55
+ ), 50
56
+
52
57
  @hide: () ->
53
58
  clearTimeout(@timeout)
59
+ @parent().addClass("has-animating-snackbar")
54
60
  @element().removeClass("visible")
55
61
  $(".fab").removeClass("move-with-snackbar")
56
62
 
63
+ setTimeout (=>
64
+ @parent().removeClass("has-animating-snackbar")
65
+ ), 50
66
+
57
67
  @element: () ->
58
68
  $("#snackbar")
69
+
70
+ @parent: () ->
71
+ @element.parent()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlegr250_material_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.24
4
+ version: 0.2.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand