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

Ticket #10984: fix_default_onFailure_callback.diff

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

    old new  
    913913      if (ipe._effect) 
    914914        ipe._effect.cancel(); 
    915915    }, 
    916     onFailure: function(transport, ipe) { 
     916    onFailure: function(ipe, transport) { 
    917917      alert('Error communication with the server: ' + transport.responseText.stripTags()); 
    918918    }, 
    919919    onFormCustomization: null, // Takes the IPE and its generated form, after editor, before controls.