Skip to content

Commit

Permalink
Don't automatically execute the jQuery version
Browse files Browse the repository at this point in the history
  • Loading branch information
janv committed Jan 24, 2010
1 parent ad0c550 commit cc3781d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions javascripts/jquery.rest_in_place.js
Expand Up @@ -54,7 +54,3 @@ jQuery.fn.rest_in_place = function() {
this.click(clickFunction);
return this;
}

jQuery(function(){
jQuery(".rest_in_place").rest_in_place();
});
3 changes: 3 additions & 0 deletions testapp/app/views/users/show.html.erb
Expand Up @@ -5,6 +5,9 @@
<%#= javascript_include_tag "mootools-121-core" , "mootools.rest_in_place" %>
<script type="text/javascript">
rails_authenticity_token = '<%= form_authenticity_token %>'
jQuery(function(){
jQuery(".rest_in_place").rest_in_place();
});
</script>
</head>
<body>
Expand Down

0 comments on commit cc3781d

Please sign in to comment.