Permalink
Browse files

Merge commit 'fbc3728' from jfernandez

  • Loading branch information...
2 parents d187906 + fbc3728 commit 016d82ae5ab2740b7e032faad7d38622b25be2c2 @amerine committed Aug 24, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/in_place_editing/helper_methods.rb
@@ -60,6 +60,8 @@ def in_place_editor(field_id, options = {})
js_options['callback'] = "function(form) { return #{options[:with]} }" if options[:with]
js_options['clickToEditText'] = %('#{options[:click_to_edit_text]}') if options[:click_to_edit_text]
js_options['textBetweenControls'] = %('#{options[:text_between_controls]}') if options[:text_between_controls]
+ js_options['onComplete'] = %('#{options[:on_complete]}') if options[:on_complete]
+ js_options['onFailure'] = %('#{options[:on_failure]}') if options[:on_failure]
function << (', ' + options_for_javascript(js_options)) unless js_options.empty?
function << ')'

0 comments on commit 016d82a

Please sign in to comment.