mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix failure container logic in Ajax.Updater
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
5bbc24a508
commit
555072e8e9
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue