Skip to content

Commit

Permalink
Store $block-html as a clone of $block
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 17, 2024
1 parent 5728ef9 commit f86184d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ WHERE
<xsl:if test="not(ixsl:contains(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $about || '`'))">
<ixsl:set-property name="{'`' || $about || '`'}" select="ldh:new-object()" object="ixsl:get(ixsl:window(), 'LinkedDataHub.contents')"/>
</xsl:if>
<!-- current HTML so it can be restored if .btn-cancel is clicked -->
<ixsl:set-property name="block-html" select="$block" object="ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $about || '`')"/>
<!-- clone of the current DOM content so it can be restored if .btn-cancel is clicked -->
<ixsl:set-property name="block-html" select="ixsl:call($block, 'cloneNode', [])" object="ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $about || '`')"/>

<!-- if the URI is external, dereference it through the proxy -->
<xsl:variable name="request-uri" select="ldh:href($ldt:base, ac:absolute-path(ldh:base-uri(.)), map{}, ac:absolute-path(ldh:base-uri(.)), $graph, ())" as="xs:anyURI"/>
Expand Down

0 comments on commit f86184d

Please sign in to comment.