MediaWiki:Group-sysop.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 4: | Line 4: | ||
for(var i = 0; i < lines.length; i++) { | for(var i = 0; i < lines.length; i++) { | ||
lines[i].addEventListener('click', function() { | lines[i].addEventListener('click', function() { | ||
if (this. | if (this.dataset.url !== null) { | ||
window.location = this. | window.location = this.dataset.url; | ||
} | } | ||
}); | }); | ||
} | } | ||