Tuesday, 31 July 2012

bind all rails htr

$('html')
.bind("ajax:beforeSend", function(evt, xhr, settings){
console.log("ajax:beforeSend");
})
.bind("ajax:success", function(evt, data, status, xhr){
console.log("ajax:success");
})
.bind("ajax:error", function(evt, xhr, status, error){
console.log("ajax:error");
});
view raw gistfile1.js hosted with ❤ by GitHub

No comments:

Post a Comment