Skip to content

Instantly share code, notes, and snippets.

@petersendidit
Created January 29, 2013 03:54
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 petersendidit/4661669 to your computer and use it in GitHub Desktop.
Save petersendidit/4661669 to your computer and use it in GitHub Desktop.
Tiny jQuery UI tabs extension to switch to using POST.
(function( $ ) {
var _ajaxSettings = $.ui.tabs.prototype._ajaxSettings;
$.ui.tabs.prototype._ajaxSettings = function( anchor, event, eventData ) {
return $.extend( {
type: "POST",
data: { test: "123" }
}, _ajaxSettings.apply( this, arguments ) );
};
})( jQuery );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment