edit_mode 0.0.3 → 0.0.4
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.
@@ -9,13 +9,16 @@ jQuery ->
|
|
9
9
|
$( ".edit_button" ).addClass( "do_not_show_in_edit_mode editable" )
|
10
10
|
|
11
11
|
# The buttons trigger the correspondig events of the surrounding edit_mode_group.
|
12
|
-
$( ".edit_button" ).click ( ->
|
12
|
+
$( ".edit_button" ).click ( (e) ->
|
13
13
|
$( this ).closest( ".edit_mode_group" ).trigger( "edit" )
|
14
|
+
e.preventDefault()
|
14
15
|
)
|
15
|
-
$( ".save_button" ).click( ->
|
16
|
+
$( ".save_button" ).click( (e) ->
|
16
17
|
$( this ).closest( ".edit_mode_group" ).trigger( "save" )
|
18
|
+
e.preventDefault()
|
17
19
|
)
|
18
|
-
$( ".cancel_button" ).click( ->
|
20
|
+
$( ".cancel_button" ).click( (e) ->
|
19
21
|
$( this ).closest( ".edit_mode_group" ).trigger( "cancel" )
|
22
|
+
e.preventDefault()
|
20
23
|
)
|
21
24
|
|
data/lib/edit_mode/version.rb
CHANGED
data/test_app/Gemfile
CHANGED
@@ -51,6 +51,8 @@ gem "mocha", :group => :test
|
|
51
51
|
|
52
52
|
# Edit Mode (This is the gem to demonstrate here.)
|
53
53
|
gem 'edit_mode', git: 'git://github.com/fiedl/edit_mode.git'
|
54
|
+
#gem 'edit_mode', path: '../'
|
55
|
+
|
54
56
|
|
55
57
|
# In-place editing (To show that this gem integrates best_in_place out of the box.)
|
56
58
|
gem 'best_in_place'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -224,18 +224,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
224
224
|
- - ! '>='
|
225
225
|
- !ruby/object:Gem::Version
|
226
226
|
version: '0'
|
227
|
-
segments:
|
228
|
-
- 0
|
229
|
-
hash: -267715791
|
230
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
228
|
none: false
|
232
229
|
requirements:
|
233
230
|
- - ! '>='
|
234
231
|
- !ruby/object:Gem::Version
|
235
232
|
version: '0'
|
236
|
-
segments:
|
237
|
-
- 0
|
238
|
-
hash: -267715791
|
239
233
|
requirements: []
|
240
234
|
rubyforge_project:
|
241
235
|
rubygems_version: 1.8.23
|