edit_mode 0.0.8 → 0.0.9
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdbdd5494cba8ac60e9ad179dcfe022f2f6305d2
|
4
|
+
data.tar.gz: 722ab2362e8cf8ddf885aaee72c44784d44c7bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a75ab16d8ef645d0be48f8e2e1d1dc18bf3fa709dc954bb331de257734ffa650e4a110a768b8893a54b00ff3453f7fc9a713835e7389568e5f2247702016b45c
|
7
|
+
data.tar.gz: e2a84da960d737cf87685771797453b40e67476fc39c53e9232fbc9c0876152af63df6f5a6b597963f18964625baab380e1d28fbe149ca143d1d4ff693073749
|
@@ -6,23 +6,23 @@ ready = ->
|
|
6
6
|
# If the user clicks on the shaded (grey) area outside, the edit_mode_group is saved.
|
7
7
|
|
8
8
|
$( ".edit_mode_group" ).bind( "edit", ->
|
9
|
-
unless $( this ).hasClass( "modal" )
|
9
|
+
unless $( this ).hasClass( "edit-mode-modal" )
|
10
10
|
modal_edit_mode_group = $( this )
|
11
|
-
$( this ).addClass( "modal" )
|
12
|
-
$( "body" ).append( "<div class='
|
13
|
-
$( "div.
|
11
|
+
$( this ).addClass( "edit-mode-modal" )
|
12
|
+
$( "body" ).append( "<div class='edit-mode-modal-bg'></div>" )
|
13
|
+
$( "div.edit-mode-modal-bg" ).hide().fadeIn().click( ->
|
14
14
|
modal_edit_mode_group.trigger( "save" )
|
15
15
|
)
|
16
16
|
)
|
17
17
|
|
18
18
|
$( ".edit_mode_group" ).bind( "save cancel", ->
|
19
|
-
if $( this ).hasClass( "modal" )
|
19
|
+
if $( this ).hasClass( "edit-mode-modal" )
|
20
20
|
unless $( this ).hasClass( "animating" )
|
21
21
|
$( this ).addClass( "animating" )
|
22
22
|
setTimeout( ->
|
23
|
-
$( "div.
|
23
|
+
$( "div.edit-mode-modal-bg" ).fadeOut( ->
|
24
24
|
$( this ).remove()
|
25
|
-
$( ".modal" ).removeClass( "modal animating" )
|
25
|
+
$( ".edit-mode-modal" ).removeClass( "edit-mode-modal animating" )
|
26
26
|
)
|
27
27
|
, 300 )
|
28
28
|
)
|
data/lib/edit_mode/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edit_mode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Fiedlschuster
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -228,3 +228,4 @@ test_files:
|
|
228
228
|
- spec/integration/buttons_spec.rb
|
229
229
|
- spec/integration/show_only_in_edit_mode_spec.rb
|
230
230
|
- spec/spec_helper.rb
|
231
|
+
has_rdoc:
|