Skip to content

Commit

Permalink
Add link to notes in CI header
Browse files Browse the repository at this point in the history
  • Loading branch information
dellagustin committed Jul 20, 2015
1 parent 52875df commit 1879170
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions demoPages/general_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*$ Correction Inst. 0000000000 0000000000 $*
*$ Req. Corr. Instructions 0000000000 0000000000 Note 0000000000 $*
*$ 0000000000 0000000000 Note 0000000000 $*
*$ 0000000000 0000000000 Hinweis 0000000000 $*
*$--------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component XXXXXX $*
Expand Down
11 changes: 11 additions & 0 deletions extensionFiles/common_ci_operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,16 @@ function commonCIPostProcessing(myElement) {
'<b>*&gt;&gt;&gt;&gt; END OF INSERTION &lt;&lt;&lt;&lt;&lt;&lt;</b></span></div>'
);

// Add links to Notes in ci header
newHtmlForElement = newHtmlForElement.replace(/\*\$\s.*\$\*/g, function(headerLine) {
return headerLine.replace(/(Note|Hinweis)\s\d{10}/, function(sapNote) {
return sapNote.replace(/\d{10}/, function(sapNoteNumber) {
sapNoteNumber =
'<a href="/sap/support/notes/' + sapNoteNumber +'">' + sapNoteNumber + '</a>';
return sapNoteNumber;
});
});
});

myElement.html(newHtmlForElement);
}

0 comments on commit 1879170

Please sign in to comment.