From e74dfecbb006498b2830094d7e49505170d11307 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Fri, 12 Feb 2016 13:15:31 +0100 Subject: [PATCH] fix: pivotaltracker for workspaces --- bookmarklet.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bookmarklet.js b/bookmarklet.js index 7b925a7..f382b97 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -757,13 +757,20 @@ return [document.URL.match(/.*\/stories\/([^?]*).*/)[1]]; } - // Board + // Project Board if (/.*\/projects\/.*/g.test(document.URL)) { return $('.story[data-id]:has(.selected)').map(function() { return $(this).attr('data-id'); }); } - + + // Workspace Board + if (/.*\/workspaces\/.*/g.test(document.URL)) { + return $('.story[data-id]:has(.selected)').map(function() { + return $(this).attr('data-id'); + }); + } + return []; };