mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-05 04:35:23 +02:00
Implemented Visitor View -- kinda betaish still
This commit is contained in:
@ -7,6 +7,15 @@ $('#unauth_users').change(function() {
|
||||
});
|
||||
});
|
||||
|
||||
$('#visitor_view').change(function() {
|
||||
var pathname = window.location.pathname;
|
||||
var checked = $(this).is(':checked')
|
||||
var payload = {"visitor_view": checked}
|
||||
$.post(pathname, payload, function(data) {
|
||||
Materialize.toast('Updated visitor mode setting!', 2000)
|
||||
});
|
||||
});
|
||||
|
||||
$('#chat_links').change(function() {
|
||||
var pathname = window.location.pathname;
|
||||
var checked = $(this).is(':checked')
|
||||
|
Reference in New Issue
Block a user