stable
Clone or download
Replace every usage of jQuery in tooltip.js by VanillaJS framework alternative. In order to keep the contribution small, only replacement of jQuery is made. Conversion to typescript will come in a dedicated contribution. * No we use DOMPurify.sanitize to make sure that we will not introduce XSS in the future. * Tuleap's flavor of `fetch` (postJSON) is not used because it is not able to send FormData parameters, it only sends JSON which is not understood by the target `/sparklines.php`. To test, hover some cross references: * Simple tooltips: release (frs), build (hudson) * Tooltips with header: artifacts (tracker), @user (core) * Sparklines: build (hudson) => a bullet should appear next to the xref to indicate the status of the build Part of story #26777: have artifact tooltips on roadmap Change-Id: Id80d647475e8929f2841f816519ab335d2c4a44a
Modified Files
Name | ||||
---|---|---|---|---|
M | lib/frontend/tooltip/package.json | +2 | −1 | Go to diff View file |
M | lib/frontend/tooltip/pnpm-lock.yaml | +8 | −0 | Go to diff View file |
M | lib/frontend/tooltip/src/tooltip.js | +98 | −83 | Go to diff View file |