diff --git a/linkedbyair-harvest-chrome-extension/js/profiles/youtrack.js b/linkedbyair-harvest-chrome-extension/js/profiles/youtrack.js index 4b0829f..1952403 100644 --- a/linkedbyair-harvest-chrome-extension/js/profiles/youtrack.js +++ b/linkedbyair-harvest-chrome-extension/js/profiles/youtrack.js @@ -10,8 +10,8 @@ this.addTimer = __bind(this.addTimer, this); this.addTimers = __bind(this.addTimers, this); this.projectNameSelector = [ - "a[title^='Project: ']", // full-screen view and edit - ".sb-board-name" // agile popup + ".fsi-property .attribute.bold", // full-screen view and edit + ".sb-settings-criteria, .sb-board-name" // agile popup (try find project name, if failed - use board name) ].join(", "); this.itemSelector = [ ".toolbar_fsi", // full-screen view @@ -130,10 +130,10 @@ timer.setAttribute("data-account", JSON.stringify(data.account)); timer.setAttribute("data-project", JSON.stringify(data.project)); timer.setAttribute("data-item", JSON.stringify(data.item)); - var goBefore = + var goAfter = item.querySelector('.star_fsi') || // full-screen view and edit ('.issueId' also works pretty well for slightly different position) item.children[0]; // agile popup - return goBefore.parentNode.insertBefore(timer, goBefore); + return goAfter.parentNode.insertBefore(timer, goAfter.nextSibling); }; YoutrackProfile.prototype.notifyPlatformOfNewTimers = function() { diff --git a/linkedbyair-harvest-chrome-extension/manifest.json b/linkedbyair-harvest-chrome-extension/manifest.json index e1b9b57..a2790db 100644 --- a/linkedbyair-harvest-chrome-extension/manifest.json +++ b/linkedbyair-harvest-chrome-extension/manifest.json @@ -48,6 +48,6 @@ "name": "Linked by Air Harvest Time Tracker", "permissions": [ "http://*/*", "https://*/*", "cookies", "webRequest" ], "update_url": "https://clients2.google.com/service/update2/crx", - "version": "2.3.1", + "version": "2.3.2", "web_accessible_resources": [ "images/trello-timer-icon.png" ] }