/* * unsw-groundwater - multiAuth.jquery.js * Description: * Author: Jennifer Tam * Created: 06 June 2023 * Updated: 06 June 2023 (jennifertam) * Source: https://github.com/IntersectAustralia/unsw-groundwater * License: Copyright (c) 2023 Intersect Australia - All Rights Reserved * Unauthorized copying of this file, via any medium is * strictly prohibited. Proprietary and confidential */ $( "[id^=maLogout]" ).on( "click", function( event ) { $.ajax({ type: "DELETE", url: "/auth/login", data: "session=remove", success: function (url) { var win = event.target.ownerDocument.defaultView || event.target.ownerDocument.parentWindow; win.location.href = url; } }); });