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) {
|
function moderate(com_id, hash, action, isso_host_script) {
|
||||||
ajax({method: "POST",
|
ajax({method: "POST",
|
||||||
url: "" + isso_host_script + "/id/" + com_id + "/" + action + "/" + hash,
|
url: isso_host_script + "/id/" + com_id + "/" + action + "/" + hash,
|
||||||
success: function(){
|
success: function(){
|
||||||
fade(document.getElementById("isso-" + com_id));
|
fade(document.getElementById("isso-" + com_id));
|
||||||
}});
|
}});
|
||||||
}
|
}
|
||||||
function edit(com_id, hash, author, email, website, comment, isso_host_script) {
|
function edit(com_id, hash, author, email, website, comment, isso_host_script) {
|
||||||
ajax({method: "POST",
|
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,
|
data: JSON.stringify({text: comment,
|
||||||
author: author,
|
author: author,
|
||||||
email: email,
|
email: email,
|
||||||
|
@ -1001,7 +1001,7 @@ class API(object):
|
|||||||
response = redirect(re.sub(
|
response = redirect(re.sub(
|
||||||
r'/login$',
|
r'/login$',
|
||||||
'/admin',
|
'/admin',
|
||||||
get_current_url(env, strip_querystring=True) #iwozere
|
get_current_url(env, strip_querystring=True)
|
||||||
))
|
))
|
||||||
cookie = functools.partial(dump_cookie,
|
cookie = functools.partial(dump_cookie,
|
||||||
value=self.isso.sign({"logged": True}),
|
value=self.isso.sign({"logged": True}),
|
||||||
|
Loading…
Reference in New Issue
Block a user