Created
March 20, 2011 08:47
-
-
Save pehrlich/878211 to your computer and use it in GitHub Desktop.
Allow determination of ajax data-type by surveying the submit button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//var method, url, data, dataType = element.data('type') || ($.ajaxSettings && $.ajaxSettings.dataType); | |
var method, url, data, dataType = element.data('type') || element.find(':submit:first').data('type') || ($.ajaxSettings && $.ajaxSettings.dataType); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment