Commit 4f4feba3 authored by Tang's avatar Tang

Fix error in cgi that makes impossible data saving. Also improve error display...

Fix error in cgi that makes impossible data saving. Also improve error display after cgi execution (for favorites at least)
parent 85d3b17e
Pipeline #378 passed with stage
in 2 minutes and 29 seconds
......@@ -72,7 +72,7 @@ function Applications(agocontrol)
method : "GET",
async : true,
}).done(function(result) {
if( !result || !result.result || result.result===0 )
if( !result || result.error.length>0 )
{
//revert changes
$(el).bootstrapSwitch('toggleState', true);
......
......@@ -16,7 +16,7 @@ import json
import os
import re
UI_DIR = os.path.join(agoclient.CONFDIR, '/ui')
UI_DIR = os.path.join(agoclient.CONFDIR, 'ui')
def loadFile(f):
content = {}
......
Markdown is supported
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