3cb5896316
Use template variables instead of CSS variables in Nox for better browser backwards compatibility. Emit a local error instead of an internal error when submitting an activation token as a guest or invalid user. Moved the inline profile scripts into profile_member.js
18 lines
431 B
JavaScript
18 lines
431 B
JavaScript
function handle_profile_hashbit() {
|
|
var hash_class = "";
|
|
switch(window.location.hash.substr(1)) {
|
|
case "ban_user":
|
|
hash_class = "ban_user_hash";
|
|
break;
|
|
default:
|
|
console.log("Unknown hashbit");
|
|
return;
|
|
}
|
|
$(".hash_hide").hide();
|
|
$("." + hash_class).show();
|
|
}
|
|
|
|
$(document).ready(() => {
|
|
if(window.location.hash) handle_profile_hashbit();
|
|
window.addEventListener("hashchange", handle_profile_hashbit, false);
|
|
}); |