Created
August 26, 2015 11:01
-
-
Save jubstuff/138a6da0a560c219a93b to your computer and use it in GitHub Desktop.
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
$.ajaxPrefilter(function( options, originalOptions, jqXHR ) { | |
var data = originalOptions.data; | |
if( data && data.action === 'ab_session_save' && data.time_from) { | |
options.data = $.param($.extend(originalOptions.data||{}, { | |
make: $('#'+$options.makeId).find("option:selected").text(), | |
model: $('#'+$options.modelId).find("option:selected").text(), | |
version: $('#'+$options.versionId).find("option:selected").text() | |
})); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment