Fix page scrolling up when deleting external claim
};
jQuery("a.trigger-title").click(triggerHandler);
});
- function removeItem(externalClaimDialectURI, externalClaimURI, externalClaimURIForMessage) {
+ function removeItem(event, externalClaimDialectURI, externalClaimURI, externalClaimURIForMessage) {
+ event.preventDefault();
+
function doDelete() {
$.ajax({
type: 'POST',
</a>
<a href="#" class="icon-link deleteLink"
style="background-image:url(../identity-claim-mgt/images/delete.gif);"
- onclick="removeItem('<%=Encode.forJavaScriptAttribute(Encode.forUriComponent(externalClaimDialectURI))%>',
+ onclick="removeItem(event,
+ '<%=Encode.forJavaScriptAttribute(Encode.forUriComponent(externalClaimDialectURI))%>',
'<%=Encode.forJavaScriptAttribute(Encode.forUriComponent(externalClaimURI))%>',
'<%=Encode.forJavaScriptAttribute(externalClaimURI)%>');return
false;"><fmt:message key='delete'/>
