Skip to content
This repository
Browse code

episode-136: adding suggestions to javascript from episode comments

  • Loading branch information...
commit 3022f5bd28cd6f1d80780b4b4d638f2beac35a05 1 parent 4d8e822
Ryan Bates authored November 17, 2008
3  episode-136/store/public/javascripts/application.js
@@ -7,9 +7,10 @@ jQuery.ajaxSetup({
7 7
 
8 8
 jQuery.fn.submitWithAjax = function() {
9 9
   this.submit(function() {
10  
-    $.post($(this).attr("action"), $(this).serialize(), null, "script");
  10
+    $.post(this.action, $(this).serialize(), null, "script");
11 11
     return false;
12 12
   })
  13
+  return this;
13 14
 };
14 15
 
15 16
 $(document).ready(function() {

0 notes on commit 3022f5b

Please sign in to comment.
Something went wrong with that request. Please try again.