mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
modified exec_body_scripts to load external scripts. finally moved all the js files out of tpls into their own js
todo: still need to organize the individual scripts client side,
This commit is contained in:
9
public/src/forum/login.js
Normal file
9
public/src/forum/login.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(function() {
|
||||
// Alternate Logins
|
||||
var altLoginEl = document.querySelector('.alt-logins');
|
||||
altLoginEl.addEventListener('click', function(e) {
|
||||
if (e.target.nodeName === 'LI') {
|
||||
document.location.href = e.target.getAttribute('data-url');
|
||||
}
|
||||
});
|
||||
}());
|
||||
Reference in New Issue
Block a user