changes as requested by @blatinier

This commit is contained in:
Craig P Hicks 2018-07-11 15:51:34 -07:00
parent b7e1666dd4
commit af023741d9
2 changed files with 3 additions and 3 deletions

View File

@ -34,14 +34,14 @@ function fade(element) {
}
function moderate(com_id, hash, action, isso_host_script) {
ajax({method: "POST",
url: "" + isso_host_script + "/id/" + com_id + "/" + action + "/" + hash,
url: isso_host_script + "/id/" + com_id + "/" + action + "/" + hash,
success: function(){
fade(document.getElementById("isso-" + com_id));
}});
}
function edit(com_id, hash, author, email, website, comment, isso_host_script) {
ajax({method: "POST",
url: "" + isso_host_script + "/id/" + com_id + "/edit/" + hash,
url: isso_host_script + "/id/" + com_id + "/edit/" + hash,
data: JSON.stringify({text: comment,
author: author,
email: email,

View File

@ -1001,7 +1001,7 @@ class API(object):
response = redirect(re.sub(
r'/login$',
'/admin',
get_current_url(env, strip_querystring=True) #iwozere
get_current_url(env, strip_querystring=True)
))
cookie = functools.partial(dump_cookie,
value=self.isso.sign({"logged": True}),