fix: pivotaltracker for workspaces

This commit is contained in:
Bengt Brodersen 2016-02-12 13:15:31 +01:00
parent 1757babee1
commit e74dfecbb0

View File

@ -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 [];
};