Skip to content

Commit

Permalink
Add .do to document_id btn-ref #459
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoudkooi committed Jan 12, 2024
1 parent 0b97b50 commit 2d2b9ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# CHANGELOG.md

## 7.2.1.3 (2024-01-12)
Features:
- Add .do to document_id btn-ref doubleclick target (Issue #459)

## 7.2.1.2 (2024-01-09)
Features:
- Improvements to /copycells command (Issue #318)
- Improvements to /copycells command (Issue #458)

## 7.2.1.0 (2023-12-18)
Features:
Expand Down
4 changes: 2 additions & 2 deletions inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,7 @@ function snuDoubleClickToShowFieldOrReload() {
else { //maybe a document ID
var data = event?.target?.parentElement.dataset;
if (data?.sysid && data?.table)
window.open(`${data?.table}?sys_id=${data?.sysid}`);
window.open(`${data?.table}.do?sys_id=${data?.sysid}`);
}
}
else if (['div', 'li', 'body'].includes(event.target.localName) && !event.target.parentElement.className.includes('monaco')) {
Expand Down Expand Up @@ -3725,7 +3725,7 @@ function snuCopySelectedCellValues(copySysIDs, shortcut = "copycells") {
if (oTitle !== null){
if (oTitle.length == 1000)
str += cElem.innerText.replace(/"/g, '""') + ' [TRUNCATED]\n';
else if (/\r|\n/.exec(oTitle)) //do not enclose in quotes if multiline #318
else if (/\r|\n/.exec(oTitle)) //do not enclose in quotes if multiline #458
str += '"' + oTitle.replace(/"/g, '""') + '"\n';
else
str += oTitle.replace(/"/g, '""') + '\n';
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"short_name": "SN Utils",
"description": "Productivity tools for ServiceNow. (Personal work, not affiliated to ServiceNow)",
"author": "Arnoud Kooi / arnoudkooi.com",
"version": "7.2.1.2",
"version": "7.2.1.3",
"manifest_version": 3,
"permissions": [
"activeTab",
Expand Down

0 comments on commit 2d2b9ee

Please sign in to comment.