BigW Consortium Gitlab

Commit eed2de20 by Mike Greiling

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

parent d2ac7717
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment