Fix modmail, remove old and unused feature

This commit is contained in:
Niles Rogoff 2016-12-13 23:05:01 -05:00
parent c8779c6584
commit 528c25a6f8
1 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
l = [
["/r/", "r", [
["/inbox", "i", "https://reddit.com/message/inbox"]
, ["/modmail", "m", "https://reddit.com/message/moderator"]
, ["/modmail", "m", "https://mod.reddit.com/mail/all"]
, ["/all", "a", "https://reddit.com/r/all"]
, ["/top", "t", "https://www.reddit.com/r/all/top?sort=top&t=hour"]
, ["/shithole/","s", [
@ -118,12 +118,13 @@ def rjs2(f, z):
def rhtml(f, z):
result = []
href = []
if type(f[2]) == str:
href = ["href='"+f[2]+"'"]
href = ""
# no longer needed because the onclick handler redirects the page
# if type(f[2]) == str:
# href = "href='"+f[2]+"'"
if len(z) > 0:
href = ["style='display: none;'"]
result.append(''.join(["<a class='"+z+"' id='",z,f[1],"' ",*href," onclick='collapse(\""+z+"\"); key({keyCode:"+str(ord(f[1].upper()))+"})'>", f[0], "</a>"]))
href = "style='display: none;'"
result.append(''.join(["<a class='"+z+"' id='",z,f[1],"' ",href," onclick='collapse(\""+z+"\"); key({keyCode:"+str(ord(f[1].upper()))+"})'>", f[0], "</a>"]))
if type(f[2]) != str:
result.append("<span style='position: absolute; left: 200px; top: 0px;'>")
for l in f[2]: