Skip to content

Commit

Permalink
Possibly fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
foucdeg committed Apr 20, 2017
1 parent 71f9201 commit d341060
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export SCRUMMER_VERSION="2.0.2"
export SCRUMMER_VERSION="2.0.3"
13 changes: 8 additions & 5 deletions src/scrummer.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,14 @@ var calculatePointsForBoard = function () {
}

var boardHeader = document.querySelector('.js-board-header');
// Add or update points badges
var badgeElement = findOrInsertSpan(boardHeader, 'scrummer-board-points', 'board-header-btn-name');
badgeElement.textContent = Math.round(boardPoints.story * 10) / 10;
var postBadgeElement = findOrInsertSpan(boardHeader, 'scrummer-board-post-points', 'board-header-btn-name');
postBadgeElement.textContent = Math.round(boardPoints.post * 10) / 10;

if (boardHeader) {
// Add or update points badges
var badgeElement = findOrInsertSpan(boardHeader, 'scrummer-board-points', 'board-header-btn-name');
badgeElement.textContent = Math.round(boardPoints.story * 10) / 10;
var postBadgeElement = findOrInsertSpan(boardHeader, 'scrummer-board-post-points', 'board-header-btn-name');
postBadgeElement.textContent = Math.round(boardPoints.post * 10) / 10;
}

listChangeObserver.observe(document.querySelector('.js-list-sortable'), {
childList: true,
Expand Down

0 comments on commit d341060

Please sign in to comment.