Elgg  Version master
prevent_clicks.js
Go to the documentation of this file.
1 
7 var lightbox_links = document.getElementsByClassName('elgg-lightbox');
8 
9 for (var i = 0; i < lightbox_links.length; i++) {
10  lightbox_links[i].onclick = function () {
11  return false;
12  };
13 }
14 
15 var toggle_links = document.querySelectorAll('a[class*="elgg-toggle"]');
16 
17 for (var i = 0; i < toggle_links.length; i++) {
18  toggle_links[i].onclick = function () {
19  return false;
20  };
21 }
var toggle_links
var lightbox_links
Inline (non-jQuery) script to prevent clicks on links that require some later loaded js to function...