corn_starch 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/corn_starch/modal.js.coffee +10 -2
- data/lib/corn_starch/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b795f7f48c8b186140931645f543f82af2a169b1
|
4
|
+
data.tar.gz: 5016582e42c6550b16b1c9b3def3154e5c57f455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88b8e1558e833fc42fbcb39be74e88e234f91296a05179b4f4e1a23a07352252c20aabf5b2c8f6b603d83016f3e48797c0b822d774eef5b9ba6ee984f3dcceb5
|
7
|
+
data.tar.gz: b5f70b0088cc853c2eb8c31c82672666bf2ed9d19fb5797ed623ead3ae873388181a0ab213f83ec31e35798dbe2cd9511e1ea314ff43b9d1fc28f5a196513754
|
@@ -3,15 +3,23 @@
|
|
3
3
|
|
4
4
|
# Modal JS
|
5
5
|
|
6
|
+
# Show Modal
|
7
|
+
window.modal_show = (modal) ->
|
8
|
+
$("#modal-#{modal}").show 'fast'
|
9
|
+
|
10
|
+
# Hide Modal
|
11
|
+
window.modal_hide = (modal) ->
|
12
|
+
$("#modal-#{modal}").hide 'fast'
|
13
|
+
|
6
14
|
# Init Modal
|
7
15
|
window.modal_init = (modal) ->
|
8
16
|
|
9
17
|
# Wire up Show Button
|
10
18
|
if $("#modal-#{modal}-btn-show").length
|
11
19
|
$("#modal-#{modal}-btn-show").click ->
|
12
|
-
|
20
|
+
modal_show modal
|
13
21
|
|
14
22
|
# Wire up Hide Button
|
15
23
|
if $("#modal-#{modal}-btn-hide").length
|
16
24
|
$("#modal-#{modal}-btn-hide").click ->
|
17
|
-
|
25
|
+
modal_hide modal
|
data/lib/corn_starch/version.rb
CHANGED