dlegr250_material_design 0.2.11 → 0.2.12
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: 185a779f9bfe9c652e30a868efa64f408ddfc428
|
4
|
+
data.tar.gz: 4b51a5eb2b6e1d863ea9422b9e15b174b822001c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c082c3c89161ffc75f630cedd3aeae3e1c55701156a57f11a50c9b4bbb8bcc9a1d3986b4bc56def9f28a3d0c0b206d0286da9ebfb2e9dc80b3fb2fb20308f6b
|
7
|
+
data.tar.gz: e3d448081085e03d63613b900146c38a8016d201353891e6ed686b92a45ec77c0a08eec174448eea6802978e3393928a6bfab235aed392b619f864de003d96de
|
@@ -11,11 +11,11 @@ class App.MD.Snackbar
|
|
11
11
|
$("body").on "click", "#snackbar", =>
|
12
12
|
@hide()
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
if $("body").data("snackbar").length > 0
|
15
|
+
App.MD.Snackbar.create($("body").data("snackbar"))
|
16
|
+
|
17
|
+
if $("body").data("snackbar-error").length > 0
|
18
|
+
App.MD.Snackbar.create($("body").data("snackbar-error"), { css_class: "snackbar-error" })
|
19
19
|
|
20
20
|
@create: (text, options = {}) ->
|
21
21
|
@text = text
|
@@ -44,8 +44,10 @@ class App.MD.Snackbar
|
|
44
44
|
|
45
45
|
@show: () ->
|
46
46
|
@element().html(@text)
|
47
|
-
|
48
|
-
|
47
|
+
setTimeout (=>
|
48
|
+
@element().addClass(@css_class).addClass("visible")
|
49
|
+
$(".fab").addClass("move-with-snackbar")
|
50
|
+
), 50
|
49
51
|
|
50
52
|
@hide: () ->
|
51
53
|
clearTimeout(@timeout)
|