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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a391de913a1cad71433f7369ae33a97dd02c37d1
|
4
|
+
data.tar.gz: 9c227a22d5cf77b069dc00a8a6bdbbb3a5bceee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71631e4bff8bb4c8a549fe1720d23bba58749d9d7f9a0e445eac289a0d90da54896a6a977d7d7123f94657b33b5969d715a7183269dd0011514a811aff6aa284
|
7
|
+
data.tar.gz: 1ce8b044715203f0368c58a32f024251ae8bb966537b3f86067f85a86d171604daf5b54cdb385618fc2688a61d6c72b50a83d1de97b674eae09e826996e27b54
|
@@ -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
|
-
$(
|
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
|
-
$(
|
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
|
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.
|
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-
|
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
|