changes as requested by @blatinier
This commit is contained in:
parent
b7e1666dd4
commit
af023741d9
@ -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,
|
||||
|
@ -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}),
|
||||
|
Loading…
Reference in New Issue
Block a user