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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56e0858294552941033f5258e17fb099a6edbab8
|
4
|
+
data.tar.gz: ab7d77908d583b1f3812186692cfb86ad6639056
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 705d19a72ff60363f563e5ec7581ce88e5a64b294509b5292607274c2790ecf1c71b52988ba076432f9057172a40bbc9e1abfc849e54efddc6785e9d8154d723
|
7
|
+
data.tar.gz: 3b127d7981436b4ce82f90cceb5179254e381ec680cbb27588394f9695d2309cbc13470febc9bc92079e557f707f25573774763a43676d39db46f69077e3d7e0
|
@@ -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
|
-
),
|
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: () ->
|