Skip to content

Instantly share code, notes, and snippets.

@revathskumar
Created December 8, 2014 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save revathskumar/2f5bd0e8aaa069fdf126 to your computer and use it in GitHub Desktop.
Save revathskumar/2f5bd0e8aaa069fdf126 to your computer and use it in GitHub Desktop.
// This code just is not yet tested.
$.on("ajax:beforeSend", function(e, xhr, settings){
append = if settings.url.indexOf('?') == -1 then "?" else "&"
settings.url += append + "xhr=true"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment