Skip to content

Commit 18dd437

Browse files
namedgraphclaude
andcommitted
Ignore clicks on disabled edit button in modal click handler
Add [not(contains-token(@Class, 'disabled'))] predicate to the btn-edit match template so that clicking a disabled edit button does not open the edit modal. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cf08c27 commit 18dd437

File tree

1 file changed

+1
-1
lines changed
  • src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client

1 file changed

+1
-1
lines changed

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/modal.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ LIMIT 10
802802

803803
<!-- open a form for document editing -->
804804

805-
<xsl:template match="div[contains-token(@class, 'action-bar')]//button[contains-token(@class, 'btn-edit')]" mode="ixsl:onclick">
805+
<xsl:template match="div[contains-token(@class, 'action-bar')]//button[contains-token(@class, 'btn-edit')][not(contains-token(@class, 'disabled'))]" mode="ixsl:onclick">
806806
<xsl:param name="about" select="ac:absolute-path(ldh:base-uri(.))" as="xs:anyURI"/> <!-- editing the current document resources -->
807807
<xsl:param name="method" select="'patch'" as="xs:string"/>
808808
<xsl:param name="form-actions-class" select="'form-actions modal-footer'" as="xs:string?"/>

0 commit comments

Comments
 (0)