copy 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
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
 
@@ -19,7 +19,7 @@
19
19
  }
20
20
 
21
21
  #_copy {
22
- overflow: hiden;
22
+ overflow: hidden;
23
23
  }
24
24
 
25
25
  #_copy,
@@ -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();
@@ -1,3 +1,3 @@
1
1
  module Copy
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
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-05-21 00:00:00 -04:00
18
+ date: 2011-06-18 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency