Skip to content

Commit

Permalink
Merge pull request #518 from intersystems/fix-497
Browse files Browse the repository at this point in the history
Convert URLs in Sync output UI into clickable links
  • Loading branch information
isc-tleavitt authored Oct 4, 2024
2 parents 93ebd68 + b7f0f05 commit f740356
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added link back to IRIS management portal from Settings, Git WebUI pages (#449)
- Added Import all and Import All (Force) to basic mode menu (#498)
- Improved behavior for commits when attribution settings are not configured (#450)
- Convert URLs in Sync output UI into clickable links (#497)

### Fixed
- Changed prompts in configure from 0/1 to no/yes (#461)
Expand Down
3 changes: 2 additions & 1 deletion csp/sync.csp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@
&js<
var outputContainer = document.getElementById('outputBox');
var lineText = #(..QuoteJS(escapedLine))#;
var lineTextNode = document.createTextNode(lineText);
var urlRegex = /(https?:\/\/[^ ]*)/gi;
lineText = lineText.replace(urlRegex, "<a href='$1' target=_blank>$1</a>");
outputContainer.innerHTML += lineText + "<br>";
>
}
Expand Down

0 comments on commit f740356

Please sign in to comment.