Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: Empact/rest_in_place
base: 3d0e30dbf8
...
head fork: Empact/rest_in_place
compare: 6975907af2
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/assets/javascripts/rest_in_place/rest_in_place.coffee.erb
6 lib/assets/javascripts/rest_in_place/rest_in_place.coffee.erb
View
@@ -166,7 +166,7 @@ class RestInPlaceEditor
RestInPlaceEditor.forms =
"input" :
activateForm : ->
- @$element.html("""<form action="javascript:void(0)" style="display:inline;"><input type="text" value="#{$.trim(@oldValue)}"></form>""")
+ @$element.html("""<form action="javascript:void(0)" style="display:inline;"><input type="text" value="#{$.trim(@oldValue)}" name="#{@attributeName}"></form>""")
@$element.find('input')[0].select()
@$element.find("form").submit =>
@update()
@@ -207,7 +207,3 @@ $.fn.restInPlace = ->
@each ->
$(this).data('restInPlaceEditor', new RestInPlaceEditor(this))
return this
-
-
-# Run automatically
-$ -> $('.rest-in-place').restInPlace()

No commit comments for this range

Something went wrong with that request. Please try again.