hallo_rails 0.1.7 → 0.1.8

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 CHANGED
@@ -1,7 +1,12 @@
1
- # HalloRails
1
+ # Hallo Rails
2
2
 
3
3
  Use the Hallo Editor (https://github.com/bergie/hallo) to edit content in place in your Rails app.
4
4
 
5
+ ## Requirements
6
+
7
+ jQuery and jQuery UI and styles for the editor icons (recommended is the icon font Font Awesome). A good way of including jQuery UI in your rails app is using the jquery-ui-rails gem.
8
+
9
+
5
10
  ## Installation
6
11
 
7
12
  Add this line to your application's Gemfile:
@@ -18,9 +23,15 @@ Add this to your javascript manifest file:
18
23
  //= require hallo
19
24
  //= require hallo_rails
20
25
 
21
- ## Requirements
26
+ Add this to your sass styles:
27
+
28
+ @import 'hallo_rails';
29
+
30
+ You also need to supply styles for the editor icons.
31
+ Good Icons are included in http://fortawesome.github.com/Font-Awesome/
32
+
33
+ Just download it and add the styles and font files to your app and you are good to go.
22
34
 
23
- jQuery and jQuery UI. A good way of including jQuery UI in your rails app is using the jquery-ui-rails gem.
24
35
 
25
36
  ## Basic Usage
26
37
 
@@ -1,3 +1,3 @@
1
1
  module HalloRails
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -43,6 +43,9 @@ init = ->
43
43
  $el.addClass('hallo_updating')
44
44
  success: ->
45
45
  $el.removeClass('hallo_updating')
46
+ error: (jqXHR, textStatus, errorThrown) ->
47
+ $el.trigger('hallo:error', [jqXHR.responseText])
48
+
46
49
 
47
50
  $('body').on "hallodeactivated", '.form_editable', ->
48
51
  $el = $(this)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hallo_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
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-11-15 00:00:00.000000000 Z
12
+ date: 2012-11-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -60,7 +60,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
60
60
  version: '0'
61
61
  segments:
62
62
  - 0
63
- hash: -3110425116344916177
63
+ hash: -2758162354305822164
64
64
  required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  segments:
71
71
  - 0
72
- hash: -3110425116344916177
72
+ hash: -2758162354305822164
73
73
  requirements: []
74
74
  rubyforge_project:
75
75
  rubygems_version: 1.8.24