Skip to content

Commit

Permalink
Upgrade to basecamp 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuhukon committed Mar 5, 2017
1 parent 101be5b commit 8aec6c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions background.js
Expand Up @@ -8,7 +8,7 @@
var todo = 0;
var regExp = /\(([^)]+)\)/;

$(this).find("ul.todos span.content:visible").each(function (index) {
$(this).find("ul.todos a:visible").each(function (index) {

var matches = regExp.exec($(this).text());

Expand All @@ -22,7 +22,7 @@
});


$(this).find("ul.completed span.content").each(function (index) {
$(this).find("ul.completed a").each(function (index) {

var matches = regExp.exec($(this).text());

Expand All @@ -35,7 +35,7 @@
}
});

$(this).find("h3").append(" (" + todo + "/" + done + ")");
$(this).find("h3 a").append(" (" + todo + "/" + done + ")");
});
};

Expand Down
6 changes: 3 additions & 3 deletions manifest.json
@@ -1,7 +1,7 @@
{
"name": "Spacecamp",
"version": "0.1",
"description": "Task estimation for basecamp",
"version": "0.2",
"description": "Task estimation for basecamp 3",
"manifest_version": 2,
"browser_action": {
"name": "Manipulate DOM",
Expand All @@ -11,6 +11,6 @@
"content_scripts": [ {
"js": [ "jquery-2.0.2.min.js", "background.js" ],
"css": ["customStyles.css"],
"matches": [ "http://basecamp.com/*", "https://basecamp.com/*"]
"matches": [ "http://3.basecamp.com/*", "https://3.basecamp.com/*"]
}]
}
3 changes: 2 additions & 1 deletion readme.md
@@ -1,4 +1,5 @@
Spacecamp
================================

Spacecamp is a Chrome extension that adds scrum like estimations to your Basecamp todo items and lists.
Spacecamp is a Chrome extension that adds scrum like estimations to your Basecamp 3 todo items and lists. You can find the source on Github;
https://github.com/ismarvelous/spacecamp. There is also a v0.1 that only has support for Basecamp 2. If you don't see the calculation press - CRTL-F5.

0 comments on commit 8aec6c6

Please sign in to comment.