x x x
x
Only portrait mode is currently supported - please rotate your device.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTML
<script>
AJS.toInit(function(){
$("form.aui.custom-user-search-form").on("submit", function(){
	var checkExist = setInterval(function() {
   		if ($('.inside-table-cell.field-value a').length) {

			// change href attr to be this site's mentor prof link
			$("#custom-user-search-results-table a").each(function() {
				if (this.href.includes("/~")) {
					let email = this.href.split("/~").pop();
  					console.log(email);
  					this.href = "/display/MSCOM/Company+Page&?company=" + email;
				}
			});
      		clearInterval(checkExist);
   		}
        console.log("does not exist");
	}, 100); // check every 100ms
});
});
</script>

...