Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
thanks to @StewartSchilling for helping me get this figured out
_satellite.logger.log("CHECKING JQUERY", $, jQuery);
$(document).ready(function() {
_satellite.logger.log("INSTALLING HANDLER");
$(document).ajaxSuccess(function(event, xhr, settings) {
_satellite.logger.log("FIRING HANDLER", event, xhr, settings);
var alreadyRun = false;
console.log("already run false");
if ((settings.url.indexOf("/loadResults.jsp") > -1) && (alreadyRun = false)); {
_satellite.logger.log("HANDLER CAUGHT loadResults.jsp", event, xhr, settings);
alreadyRun = true;
console.log("already run true");
trigger();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment