Skip to content
Snippets Groups Projects
Commit eed2de20 authored by Mike Greiling's avatar Mike Greiling
Browse files

use HTMLElement.dataset over getAttribute since all browsers GitLab supports implement it

parent d2ac7717
No related branches found
No related tags found
1 merge request!7389Remove the help text under the sidebar subscribe button and style it inline
Pipeline #
Loading
Loading
@@ -24,7 +24,7 @@
button.classList.add('disabled');
 
const isSubscribed = buttonSpan.innerHTML.trim().toLowerCase() !== 'subscribe';
const toggleActionUrl = this.containerElm.getAttribute('data-url');
const toggleActionUrl = this.containerElm.dataset.url;
 
$.post(toggleActionUrl, () => {
button.classList.remove('disabled');
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment