Fix page scrolling up when deleting local claim
};
jQuery("a.trigger-title").click(triggerHandler);
});
- function removeItem(localClaimURI, localClaimURIForMessage, localClaimslength) {
+ function removeItem(event, localClaimURI, localClaimURIForMessage, localClaimslength) {
+ event.preventDefault();
if (localClaimslength <= 1) {
CARBON.showWarningDialog('<fmt:message key="cannot.remove.default.carbon.dialect.all.claims"/>');
return false;
</a>
<a href="#" class="icon-link deleteLink"
style="background-image:url(../identity-claim-mgt/images/delete.gif);"
- onclick="removeItem('<%=Encode.forJavaScriptAttribute(Encode.forUriComponent(localClaimURI))%>',
+ onclick="removeItem(event, '<%=Encode.forJavaScriptAttribute(Encode.forUriComponent(localClaimURI))%>',
'<%=Encode.forJavaScriptAttribute(localClaimURI)%>',
'<%=Encode.forJavaScriptAttribute(String.valueOf(localClaims.length))%>');return
false;"><fmt:message key='delete'/>
