aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Stephenson <sam@37signals.com>2005-07-04 05:36:12 +0000
committerSam Stephenson <sam@37signals.com>2005-07-04 05:36:12 +0000
commit555072e8e9c4df577fbd10e8a34fa4036e31649c (patch)
treeb5c75254db0e21827dbf540315d1199cce2cd972
parent5bbc24a508c73f3be910c265f39f34efd444c9f0 (diff)
downloadrails-555072e8e9c4df577fbd10e8a34fa4036e31649c.tar.gz
rails-555072e8e9c4df577fbd10e8a34fa4036e31649c.tar.bz2
rails-555072e8e9c4df577fbd10e8a34fa4036e31649c.zip
Fix failure container logic in Ajax.Updater
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--actionpack/lib/action_view/helpers/javascripts/prototype.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/javascripts/prototype.js b/actionpack/lib/action_view/helpers/javascripts/prototype.js
index f8ba48d1e4..09f21edaf7 100644
--- a/actionpack/lib/action_view/helpers/javascripts/prototype.js
+++ b/actionpack/lib/action_view/helpers/javascripts/prototype.js
@@ -282,8 +282,8 @@ Ajax.Updater.prototype.extend(Ajax.Request.prototype).extend({
initialize: function(container, url, options) {
this.containers = {
success: container.success ? $(container.success) : $(container),
- failure: container.failure ?
- (container.success ? null : $(container)) : null
+ failure: container.failure ? $(container.failure) :
+ (container.success ? null : $(container))
}
this.transport = Ajax.getTransport();