diff --git a/src/api/index.py b/src/api/index.py index 6aca7df..cdda893 100644 --- a/src/api/index.py +++ b/src/api/index.py @@ -66,7 +66,10 @@ def get_summary(id): # r = gReader.view('summary/app_resources',key=p['uid']) #else: # r = gReader.view('summary/folder_size',key=p['uid']) - r = r = gReader.view('summary/'+id.strip(),key=p['uid']) + id='summary/'+id.strip() + print p + print id + r = r = gReader.view(id,key=p['uid']) except Exception,e: print (e) diff --git a/src/api/static/js/dashboard.js b/src/api/static/js/dashboard.js index 1cce947..88d1bd9 100755 --- a/src/api/static/js/dashboard.js +++ b/src/api/static/js/dashboard.js @@ -256,10 +256,12 @@ g.summary.factory = function (url,pointer) { var object = {} object.url = url var observer = null - + var TIME_ELLAPSED = 2000 ; object.callback = function (r) { r = JSON.parse(r.responseText) pointer(r) + console.log(r) + //observer.notify() } @@ -267,10 +269,13 @@ g.summary.factory = function (url,pointer) { observer = observer var httpclient = HttpClient.instance() - httpclient.setAsync(false) + //httpclient.setAsync(false) httpclient.get(this.url, this.callback) - - observer.notify() + setTimeout(function(){ + observer.notify() + },TIME_ELLAPSED) ; + + //observer.notify() } return object