mirror of https://github.com/calzoneman/sync.git
Remove dead client code
This commit is contained in:
parent
7e623daebb
commit
0922ce8e66
|
@ -119,5 +119,4 @@ mixin us-mod
|
|||
h4 Moderator Preferences
|
||||
form.form-horizontal(action="javascript:void(0)")
|
||||
mixin rcheckbox("us-modflair", "Show name color")
|
||||
mixin rcheckbox("us-joinmessage", "Show join messages")
|
||||
mixin rcheckbox("us-shadowchat", "Show shadowmuted messages")
|
||||
|
|
|
@ -155,29 +155,6 @@ Callbacks = {
|
|||
"channels</a> page.");
|
||||
},
|
||||
|
||||
registerChannel: function(data) {
|
||||
if ($("#chanregisterbtn").length > 0) {
|
||||
$("#chanregisterbtn").text("Register it")
|
||||
.attr("disabled", false);
|
||||
}
|
||||
if(data.success) {
|
||||
$("#chregnotice").remove();
|
||||
}
|
||||
else {
|
||||
makeAlert("Error", data.error, "alert-danger")
|
||||
.insertAfter($("#chregnotice"));
|
||||
}
|
||||
},
|
||||
|
||||
unregisterChannel: function(data) {
|
||||
if(data.success) {
|
||||
alert("Channel unregistered");
|
||||
}
|
||||
else {
|
||||
alert(data.error);
|
||||
}
|
||||
},
|
||||
|
||||
setMotd: function(motd) {
|
||||
CHANNEL.motd = motd;
|
||||
$("#motd").html(motd);
|
||||
|
@ -342,30 +319,6 @@ Callbacks = {
|
|||
formatCSBanlist();
|
||||
},
|
||||
|
||||
recentLogins: function(entries) {
|
||||
var tbl = $("#loginhistory table");
|
||||
// I originally added this check because of a race condition
|
||||
// Now it seems to work without but I don't trust it
|
||||
if(!tbl.hasClass("table")) {
|
||||
setTimeout(function() {
|
||||
Callbacks.recentLogins(entries);
|
||||
}, 100);
|
||||
return;
|
||||
}
|
||||
if(tbl.children().length > 1) {
|
||||
$(tbl.children()[1]).remove();
|
||||
}
|
||||
for(var i = 0; i < entries.length; i++) {
|
||||
var tr = document.createElement("tr");
|
||||
var name = $("<td/>").text(entries[i].name).appendTo(tr);
|
||||
var aliases = $("<td/>").text(entries[i].aliases.join(", ")).appendTo(tr);
|
||||
var time = new Date(entries[i].time).toTimeString();
|
||||
$("<td/>").text(time).appendTo(tr);
|
||||
|
||||
$(tr).appendTo(tbl);
|
||||
}
|
||||
},
|
||||
|
||||
channelRanks: function(entries) {
|
||||
var tbl = $("#cs-chanranks table");
|
||||
tbl.data("entries", entries);
|
||||
|
@ -515,11 +468,6 @@ Callbacks = {
|
|||
}
|
||||
},
|
||||
|
||||
joinMessage: function(data) {
|
||||
if(USEROPTS.joinmessage)
|
||||
addChatMessage(data);
|
||||
},
|
||||
|
||||
clearchat: function() {
|
||||
$("#messagebuffer").html("");
|
||||
LASTCHAT.name = "";
|
||||
|
|
|
@ -106,7 +106,6 @@ var USEROPTS = {
|
|||
wmode_transparent : getOrDefault("wmode_transparent", true),
|
||||
chatbtn : getOrDefault("chatbtn", false),
|
||||
altsocket : getOrDefault("altsocket", false),
|
||||
joinmessage : getOrDefault("joinmessage", true),
|
||||
qbtn_hide : getOrDefault("qbtn_hide", false),
|
||||
qbtn_idontlikechange : getOrDefault("qbtn_idontlikechange", false),
|
||||
first_visit : getOrDefault("first_visit", true),
|
||||
|
|
|
@ -642,7 +642,6 @@ function showUserOptions() {
|
|||
$("#us-no-emotes").prop("checked", USEROPTS.no_emotes);
|
||||
|
||||
$("#us-modflair").prop("checked", USEROPTS.modhat);
|
||||
$("#us-joinmessage").prop("checked", USEROPTS.joinmessage);
|
||||
$("#us-shadowchat").prop("checked", USEROPTS.show_shadowchat);
|
||||
|
||||
formatScriptAccessPrefs();
|
||||
|
@ -677,7 +676,6 @@ function saveUserOptions() {
|
|||
|
||||
if (CLIENT.rank >= 2) {
|
||||
USEROPTS.modhat = $("#us-modflair").prop("checked");
|
||||
USEROPTS.joinmessage = $("#us-joinmessage").prop("checked");
|
||||
USEROPTS.show_shadowchat = $("#us-shadowchat").prop("checked");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue