dlegr250_material_design 0.2.07 → 0.2.08

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: cb1ea54872d01c12066a9d37bd988e6dfdd1bb40
4
- data.tar.gz: 7b722410ded68b978d613c943b3c3ddee3192193
3
+ metadata.gz: 56e0858294552941033f5258e17fb099a6edbab8
4
+ data.tar.gz: ab7d77908d583b1f3812186692cfb86ad6639056
5
5
  SHA512:
6
- metadata.gz: da5a6b11a9f3442449cd8fe8d1650b4e898bb7315401c43b3b853b9137852b525e12978edc4177622fc90bcb9a82b32fc0f6220e2c19f738521dfb0e0a70c3ed
7
- data.tar.gz: 8f0510037fd4c4e9fe7f1dc370aca9ab55fd032766926607b97d7c962e0f50b04a1efb397dcb24a910c2f80f1d248d45b08e5e85cddbfd9f9756762c89974b5a
6
+ metadata.gz: 705d19a72ff60363f563e5ec7581ce88e5a64b294509b5292607274c2790ecf1c71b52988ba076432f9057172a40bbc9e1abfc849e54efddc6785e9d8154d723
7
+ data.tar.gz: 3b127d7981436b4ce82f90cceb5179254e381ec680cbb27588394f9695d2309cbc13470febc9bc92079e557f707f25573774763a43676d39db46f69077e3d7e0
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.2.07"
2
+ VERSION = "0.2.08"
3
3
  end
@@ -16,6 +16,7 @@ class App.MD.Snackbar
16
16
 
17
17
  # Set options to override defaults
18
18
  @duration = options["duration"] || 5000
19
+ @delay = options["delay"] || 500
19
20
 
20
21
  if @visible
21
22
  # Force hide current one via animation
@@ -24,7 +25,7 @@ class App.MD.Snackbar
24
25
  # Show new one via animation
25
26
  setTimeout (=>
26
27
  @show()
27
- ), 250
28
+ ), @delay
28
29
  else
29
30
  @visible = true
30
31
  @show()
@@ -36,14 +37,12 @@ class App.MD.Snackbar
36
37
 
37
38
  @show: () ->
38
39
  @element().html(@text)
39
- # @element().css("display", "block")
40
40
  @element().addClass("visible")
41
41
  $(".fab").addClass("move-with-snackbar")
42
42
 
43
43
  @hide: () ->
44
44
  clearTimeout(@timeout)
45
45
  @element().removeClass("visible")
46
- # @element().css("display", "none")
47
46
  $(".fab").removeClass("move-with-snackbar")
48
47
 
49
48
  @element: () ->
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.07
4
+ version: 0.2.08
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand