Skip to content
This repository
Browse code

Fix failure container logic in Ajax.Updater

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 555072e8e9c4df577fbd10e8a34fa4036e31649c 1 parent 5bbc24a
Sam Stephenson authored July 04, 2005
4  actionpack/lib/action_view/helpers/javascripts/prototype.js
@@ -282,8 +282,8 @@ Ajax.Updater.prototype.extend(Ajax.Request.prototype).extend({
282 282
   initialize: function(container, url, options) {
283 283
     this.containers = {
284 284
       success: container.success ? $(container.success) : $(container),
285  
-      failure: container.failure ? 
286  
-        (container.success ? null : $(container)) : null
  285
+      failure: container.failure ? $(container.failure) :
  286
+        (container.success ? null : $(container))
287 287
     }
288 288
 
289 289
     this.transport = Ajax.getTransport();

0 notes on commit 555072e

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