Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10984: fix_default_onFailure_callback_and_handleAJAXFailure.diff

File fix_default_onFailure_callback_and_handleAJAXFailure.diff, 0.7 kB (added by ZenCocoon, 7 months ago)
  • src/controls.js

    old new  
    612612      this.element.innerHTML = this._oldInnerHTML; 
    613613      this._oldInnerHTML = null; 
    614614    } 
     615    this.leaveEditMode(); 
    615616  }, 
    616617  handleFormCancellation: function(e) { 
    617618    this.wrapUp(); 
     
    913914      if (ipe._effect) 
    914915        ipe._effect.cancel(); 
    915916    }, 
    916     onFailure: function(transport, ipe) { 
     917    onFailure: function(ipe, transport) { 
    917918      alert('Error communication with the server: ' + transport.responseText.stripTags()); 
    918919    }, 
    919920    onFormCustomization: null, // Takes the IPE and its generated form, after editor, before controls.