copy 0.1.4 → 0.1.5
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.
- data/README.md +1 -1
- data/lib/copy/admin/copy.css +1 -1
- data/lib/copy/admin/index.js.erb +6 -0
- data/lib/copy/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ The text provided in the block will be saved and can then be edited live on the
|
|
|
37
37
|
|
|
38
38
|
Single line blocks will be edited in a text field as opposed to a textarea. Perfect for headlines.
|
|
39
39
|
|
|
40
|
-
<h1><% copy :title %>Like a boss!<% end %></h1>
|
|
40
|
+
<h1><% copy :title do %>Like a boss!<% end %></h1>
|
|
41
41
|
|
|
42
42
|
**Partials** can be rendered from any view with the `partial` helper. Their filenames are always prefixed with an underscore.
|
|
43
43
|
|
data/lib/copy/admin/copy.css
CHANGED
data/lib/copy/admin/index.js.erb
CHANGED
|
@@ -36,6 +36,12 @@ jQuery.noConflict();
|
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
+
// Prevent navigating away if a link is clicked in an editable region
|
|
40
|
+
// and generally prevent interfering with launching the copy editer.
|
|
41
|
+
$('._copy_clickable *').live('click', function(event) {
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
});
|
|
44
|
+
|
|
39
45
|
$('._copy_cancel').live('click', function() {
|
|
40
46
|
$('#_copy').remove();
|
|
41
47
|
clickable();
|
data/lib/copy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: copy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.1.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Javan Makhmali
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-06-18 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|