diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-14 11:38:55 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-14 11:38:55 +0000 |
commit | 7073abe15906d5b4bbd7cd455136fbd2c52a8a49 (patch) | |
tree | aafe5c555a359e96028a795a8fb9995cff786e4e /railties/html | |
parent | bf0b7588ee4e32353e0dc10c2d1c3d2b9ea952c4 (diff) | |
download | rails-7073abe15906d5b4bbd7cd455136fbd2c52a8a49.tar.gz rails-7073abe15906d5b4bbd7cd455136fbd2c52a8a49.tar.bz2 rails-7073abe15906d5b4bbd7cd455136fbd2c52a8a49.zip |
Fixed bug with :success/:failure callbacks for the JavaScriptHelper methods #1730 [court3nay/Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/html')
-rw-r--r-- | railties/html/javascripts/prototype.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/html/javascripts/prototype.js b/railties/html/javascripts/prototype.js index 37635ccfab..5feddb6dda 100644 --- a/railties/html/javascripts/prototype.js +++ b/railties/html/javascripts/prototype.js @@ -268,7 +268,7 @@ Ajax.Request.prototype = (new Ajax.Base()).extend({ if (event == 'Complete') (this.options['on' + this.transport.status] - || this.options['on' + this.responseIsSuccess() ? 'Success' : 'Failure'] + || this.options['on' + (this.responseIsSuccess() ? 'Success' : 'Failure')] || Prototype.emptyFunction)(this.transport); (this.options['on' + event] || Prototype.emptyFunction)(this.transport); |