Commit 2faf6a54 authored by Andreas Valder's avatar Andreas Valder
Browse files

made moderator interface work ;/

parent e9b0ccb6
......@@ -245,7 +245,7 @@ def edit():
'comment', 'internal'])
}
query('BEGIN TRANSACTION')
if request.is_json():
if request.is_json:
changes = request.get_json().items()
else:
changes = request.args.items()
......
......@@ -47,8 +47,9 @@ var moderatorinterface = {
$.ajax({
method: "POST",
url: "/edit",
dataType: "text",
contentType: "application/json",
data: req
data: JSON.stringify(req)
})
.done(function( msg ) {
alert( "Data Saved: " + msg );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment