Permalink
Browse files

Don't automatically execute the jQuery version

  • Loading branch information...
1 parent ad0c550 commit cc3781dcfeb5564d23130f180059819fd3add4e5 @janv janv committed Jan 24, 2010
Showing with 3 additions and 4 deletions.
  1. +0 −4 javascripts/jquery.rest_in_place.js
  2. +3 −0 testapp/app/views/users/show.html.erb
View
4 javascripts/jquery.rest_in_place.js
@@ -54,7 +54,3 @@ jQuery.fn.rest_in_place = function() {
this.click(clickFunction);
return this;
}
-
-jQuery(function(){
- jQuery(".rest_in_place").rest_in_place();
-});
View
3 testapp/app/views/users/show.html.erb
@@ -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>

0 comments on commit cc3781d

Please sign in to comment.