Created
May 23, 2011 03:26
-
-
Save jakcharlton/986173 to your computer and use it in GitHub Desktop.
How to turn to CoffeeScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('.edit_area').editable('/fragments/1/save', { | |
loadurl : '/fragments/1/load_markup', | |
type : 'textarea', | |
cancel : 'Cancel', | |
submit : 'OK', | |
onblur : 'submit', | |
indicator : '<img src="/assets/rails.png">', | |
tooltip : 'Click to edit...' | |
}); | |
}); |
Thanks - did the job .... now a Rails + CoffeeScript problem arises, the .erb doesn't have access to url_for LOL ... gonna be a fun learnign process I can see! :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry for the delay in responding. How about: