corn_starch 1.8.4 → 1.8.5

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: 5672b718a4236815a933b2d40071af7b6495bfba
4
- data.tar.gz: 6b85879e9fe62ba9d19e6da5016c0f7d8e745d02
3
+ metadata.gz: ed1a1249afbdbedd8cae497ad248fd8b3ee10e43
4
+ data.tar.gz: 7f68cdf28d4ec6df70cc6df3dde2dfaedce41534
5
5
  SHA512:
6
- metadata.gz: bd399d99ee8798db119a08fc402030a5d3cb31618871b2ebde12e09a04a71274aa3a61cd57812c604034043a5900cd033564ea3095894538f1736fd4b01ba08e
7
- data.tar.gz: d10bb35dad3bb84be8a30ad2cf749d1e8c906f6d2452e674f2d82e2a602084ccb8ca912637af7c70d5dbfd3a91585d10de9f9b075246d5f74e7504dceceab740
6
+ metadata.gz: 035c4d03382dfd2bbd63e01eb1e11ea160d6da3dc3e7050d996a2ba1abcd70c42ffa3abad225ce9e74da3769ccb8e4f6f32fc1b5988749e7d80f59350ea9d54d
7
+ data.tar.gz: 2e778b10ff76982fe6ac468736064e719a3312e3e387290044322b85965c1d888a70ab0931c290a0c3d57b7294de67125185fa6f525f1eb09798552b19b031af
@@ -5,21 +5,24 @@
5
5
 
6
6
  # Show Modal
7
7
  window.modal_show = (modal) ->
8
- $("#modal-#{modal}").show 'fast'
8
+ e = $("#modal-#{modal}")
9
+ onshow = e.attr 'onshow'
10
+ window[onshow] unless onshow == ''
11
+ e.show 'fast'
9
12
 
10
13
  # Hide Modal
11
14
  window.modal_hide = (modal) ->
12
- $("#modal-#{modal}").hide 'fast'
15
+ $("#modal-#{modal}").hide 'fast'
13
16
 
14
17
  # Init Modal
15
18
  window.modal_init = (modal) ->
16
19
 
17
- # Wire up Show Button
18
- if $("#modal-#{modal}-btn-show").length
19
- $("#modal-#{modal}-btn-show").click ->
20
- modal_show modal
20
+ # Wire up Show Button
21
+ if $("#modal-#{modal}-btn-show").length
22
+ $("#modal-#{modal}-btn-show").click ->
23
+ modal_show modal
21
24
 
22
- # Wire up Hide Button
23
- if $("#modal-#{modal}-btn-hide").length
24
- $("#modal-#{modal}-btn-hide").click ->
25
- modal_hide modal
25
+ # Wire up Hide Button
26
+ if $("#modal-#{modal}-btn-hide").length
27
+ $("#modal-#{modal}-btn-hide").click ->
28
+ modal_hide modal
@@ -6,5 +6,5 @@
6
6
  # Dismiss Notifications
7
7
  window.notifications_dismiss = (container) ->
8
8
 
9
- # Drop Notification
10
- $("##{container}").hide 'fast'
9
+ # Drop Notification
10
+ $("##{container}").hide 'fast'
@@ -1,5 +1,5 @@
1
1
  <%# Modal %>
2
- <%= div_tag class: :modal, id: modal_name(modal[:name]) do %>
2
+ <%= div_tag class: :modal, id: modal_name(modal[:name]), 'modal-onshow' => modal[:onshow] do %>
3
3
  <div class='modal-content'><%= yield %></div>
4
4
  <% end %>
5
5
 
@@ -1,3 +1,3 @@
1
1
  module CornStarch
2
- VERSION = '1.8.4'
2
+ VERSION = '1.8.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corn_starch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse