From 145db838159f180e45c23df2a9c47792d47ef600 Mon Sep 17 00:00:00 2001 From: Azareal Date: Tue, 4 Jun 2019 15:53:40 +1000 Subject: [PATCH] Get rid of some old JS. --- public/global.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/public/global.js b/public/global.js index b3ee1761..bfa92833 100644 --- a/public/global.js +++ b/public/global.js @@ -351,7 +351,6 @@ function runWebSockets(resume = false) { notifyOnScriptW("template_alert", (e) => { if(e!=undefined) console.log("failed alert? why?", e) }, () => { - //console.log("ha") if(!Template_alert) throw("template function not found"); addInitHook("after_phrases", () => { // TODO: The load part of loadAlerts could be done asynchronously while the update of the DOM could be deferred @@ -800,19 +799,6 @@ function mainInit(){ }); }); - // This one's for Tempra Conflux - // TODO: We might want to use pure JS here - /*$(".ip_item").each(function(){ - var ip = this.textContent; - if(ip.length > 10){ - this.innerHTML = "Show IP"; - this.onclick = function(event) { - event.preventDefault(); - this.textContent = ip; - }; - } - });*/ - $(".quote_item").click(function(){ event.preventDefault(); event.stopPropagation();