Permalink
Browse files

Merge commit '0aab64f024b2808d07fc47a64f4215891f633488'

  • Loading branch information...
2 parents bdd6fbb + 0aab64f commit 4a750354f08f052f6cff4250a268f063f8091355 @janv committed Apr 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/assets/javascripts/rest_in_place/rest_in_place.coffee.erb
@@ -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)}" class="rest-in-place-#{@attributeName}"></form>""")
@$element.find('input')[0].select()
@$element.find("form").submit =>
@update()
@@ -178,7 +178,7 @@ RestInPlaceEditor.forms =
"textarea" :
activateForm : ->
- @$element.html("""<form action="javascript:void(0)" style="display:inline;"><textarea>#{$.trim(@oldValue)}</textarea></form>""")
+ @$element.html("""<form action="javascript:void(0)" style="display:inline;"><textarea class="rest-in-place-#{@attributeName}">#{$.trim(@oldValue)}</textarea></form>""")
@$element.find('textarea')[0].select()
@$element.find("textarea").blur => @update()

0 comments on commit 4a75035

Please sign in to comment.