Update bookmarklet.js

This commit is contained in:
Bengt Brodersen 2015-11-09 17:53:47 +01:00
parent 8dfda9eba2
commit b6a5e94c69

View File

@ -1341,6 +1341,11 @@ body {
return [document.URL.replace(/.*\/browse\/([^?]*).*/, '$1')]; return [document.URL.replace(/.*\/browse\/([^?]*).*/, '$1')];
} }
//Project
if (/.*\/projects\/.*/g.test(document.URL)) {
return [document.URL.replace(/.*\/projects\/[^\/]*\/[^\/]*\/([^?]*).*/, '$1')];
}
// RapidBoard // RapidBoard
if (/.*\/secure\/RapidBoard.jspa.*/g.test(document.URL)) { if (/.*\/secure\/RapidBoard.jspa.*/g.test(document.URL)) {
return jQuery('div[data-issue-key].ghx-selected').map(function() { return jQuery('div[data-issue-key].ghx-selected').map(function() {