dlegr250_material_design 0.5.54 → 0.5.55

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: 792285241925a9e6314d07f0e00b0c3645e036a5
4
- data.tar.gz: bb436d8df532c6cdcf0725b411080d734907bc29
3
+ metadata.gz: a391de913a1cad71433f7369ae33a97dd02c37d1
4
+ data.tar.gz: 9c227a22d5cf77b069dc00a8a6bdbbb3a5bceee7
5
5
  SHA512:
6
- metadata.gz: 061a96835b3a86f591d8568f192e3c1908931f0765db8f8cdea03a5b334422bfa45e346e28bb30024ef81a785203c085a4852f0ddce399b7f7e57f05afa922d7
7
- data.tar.gz: b09d8e2e3680469c5d4a93a468d06b46a2919d7b93f69480c486edcfd955d4542337649f36d1e4a639e102484aa8081920c3b36b1f03351fa0fde3d72533d999
6
+ metadata.gz: 71631e4bff8bb4c8a549fe1720d23bba58749d9d7f9a0e445eac289a0d90da54896a6a977d7d7123f94657b33b5969d715a7183269dd0011514a811aff6aa284
7
+ data.tar.gz: 1ce8b044715203f0368c58a32f024251ae8bb966537b3f86067f85a86d171604daf5b54cdb385618fc2688a61d6c72b50a83d1de97b674eae09e826996e27b54
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.5.54"
2
+ VERSION = "0.5.55"
3
3
  end
@@ -3,14 +3,11 @@
3
3
  #======================================================================
4
4
  class App.MD.Toggles
5
5
  @init: () ->
6
- @setVariables()
7
6
  @setEvents()
8
7
 
9
- @setVariables: () ->
10
-
11
8
  @setEvents: () ->
12
9
  # Toggle to show/hide elements
13
- $("body").on "click select", "[data-show-element]", (e) ->
10
+ $(document).on "click select", "[data-show-element]", (e) ->
14
11
  $($(this).attr("data-show-element")).show()
15
12
 
16
13
  $(document).on "click", "[data-remove-element]", (e) ->
@@ -19,5 +16,13 @@ class App.MD.Toggles
19
16
  $(document).on "click", "[role='remove-element']", (e) ->
20
17
  $($(this).attr("data-element")).remove()
21
18
 
22
- $("body").on "click select", "[data-hide-element]", (e) ->
19
+ $(document).on "click select", "[data-hide-element]", (e) ->
23
20
  $($(this).attr("data-hide-element")).hide()
21
+
22
+ $(document).on "click", "[data-toggle-element-if-checked]", (e) ->
23
+ domId = $(e.target).data("toggle-element-if-checked")
24
+
25
+ if this.checked
26
+ $("#{domId}").removeClass("hidden")
27
+ else
28
+ $("#{domId}").addClass("hidden")
@@ -1,7 +1,7 @@
1
1
  //======================================================================
2
2
  // Gem manifest file required by apps using the gem.
3
3
  //======================================================================
4
- //= require jquery2
4
+ //= require jquery3
5
5
  //= require jquery_ujs
6
6
  //= require turbolinks
7
7
  //= require extensions/jquery
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlegr250_material_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.54
4
+ version: 0.5.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-15 00:00:00.000000000 Z
11
+ date: 2017-03-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'WARNING: ALPHA CODE, NOT PRODUCTION READY. ACTIVELY UNDER DEVELOPMENT
14
14
  AS OF AUG 2016. Implement Google Material Design spec with modern browsers in mind