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: 60b4df2119a840d417037951c6b1ea29c51dca48
4
- data.tar.gz: 361f12d3bb41e96537c2088200f9068229fa76a3
3
+ metadata.gz: 185a779f9bfe9c652e30a868efa64f408ddfc428
4
+ data.tar.gz: 4b51a5eb2b6e1d863ea9422b9e15b174b822001c
5
5
  SHA512:
6
- metadata.gz: e8e76f7eb76f5827b548ac9b5d5beff26972f6e879b0d2c4c9895beaa5bd77ee11696eb3e78a7e1972e9068675e3447ac31afda0681b53fbb8379eaff4c43d4e
7
- data.tar.gz: d3e8e0168ac13e98b04b98470b1f2b171c6ec271b0b91988a2dc8d3eab3c597e115ba30d1d5b7f107c8424ff7ebd912ccd0a536d89af3e791a5b24970c6fb242
6
+ metadata.gz: 0c082c3c89161ffc75f630cedd3aeae3e1c55701156a57f11a50c9b4bbb8bcc9a1d3986b4bc56def9f28a3d0c0b206d0286da9ebfb2e9dc80b3fb2fb20308f6b
7
+ data.tar.gz: e3d448081085e03d63613b900146c38a8016d201353891e6ed686b92a45ec77c0a08eec174448eea6802978e3393928a6bfab235aed392b619f864de003d96de
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.2.11"
2
+ VERSION = "0.2.12"
3
3
  end
@@ -11,11 +11,11 @@ class App.MD.Snackbar
11
11
  $("body").on "click", "#snackbar", =>
12
12
  @hide()
13
13
 
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" })
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
- @element().addClass(@css_class).addClass("visible")
48
- $(".fab").addClass("move-with-snackbar")
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)
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.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand