-
Notifications
You must be signed in to change notification settings - Fork 569
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(backlog): add new origin (#2359)
* chore(backlog): apply formatting * fix(backlog): add new origin * Update origins.js
- Loading branch information
Showing
2 changed files
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,33 @@ | ||
'use strict'; | ||
/** | ||
* @name Backlog | ||
* @urlAlias backlog.com | ||
* @urlRegex *://*.backlog.com/* | ||
*/ | ||
|
||
togglbutton.render('#issueArea:not(.toggl)', { observe: true }, function (elem) { | ||
const container = createTag('span', ''); | ||
const ticketNumElem = $('.ticket__key .ticket__key-number', elem); | ||
const titleElem = $('#summary .title-group__title-text', elem); | ||
const projectElem = $('.project-header .header-icon-set__name'); | ||
const containerElem = $('#summary *:first-child'); | ||
'use strict' | ||
|
||
const descFunc = function () { | ||
return ticketNumElem.textContent + ' ' + titleElem.textContent; | ||
}; | ||
togglbutton.render( | ||
'#issueArea:not(.toggl)', | ||
{ observe: true }, | ||
function (elem) { | ||
const container = createTag('span', '') | ||
const ticketNumElem = $('.ticket__key .ticket__key-number', elem) | ||
const titleElem = $('#summary .title-group__title-text', elem) | ||
const projectElem = $('.project-header .header-icon-set__name') | ||
const containerElem = $('#summary *:first-child') | ||
|
||
const link = togglbutton.createTimerLink({ | ||
className: 'Backlog', | ||
description: descFunc, | ||
projectName: projectElem.textContent, | ||
calculateTotal: true | ||
}); | ||
const descFunc = function () { | ||
return ticketNumElem.textContent + ' ' + titleElem.textContent | ||
} | ||
|
||
container.appendChild(link); | ||
containerElem.parentNode.appendChild(container, containerElem); | ||
}); | ||
const link = togglbutton.createTimerLink({ | ||
className: 'Backlog', | ||
description: descFunc, | ||
projectName: projectElem.textContent, | ||
calculateTotal: true, | ||
}) | ||
|
||
container.appendChild(link) | ||
containerElem.parentNode.appendChild(container, containerElem) | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters