diff --git a/cms/cloud.py b/cms/cloud.py index 718ff89..fac1a3a 100644 --- a/cms/cloud.py +++ b/cms/cloud.py @@ -4,7 +4,7 @@ Reads from nextcloud import nextcloud_client as nc import copy -from mistune import markdown +from mistune import markdown #version 0.8.4 import time import json diff --git a/index.py b/index.py index 7b16483..6844292 100644 --- a/index.py +++ b/index.py @@ -185,10 +185,10 @@ def reload(): _systemKey = None elif 'key' in _system['source'] and _system['source']['key']: _systemKey = _system['source']['key'] - print ([_key,_systemKey,_systemKey == _key]) - if _key and _systemKey and _systemKey == _key : - _handler.reload() - return "",200 + print ([_key,_systemKey,_systemKey == _key]) + if _key and _systemKey and _systemKey == _key : + _handler.reload() + return "",200 pass return "",403 @_app.route('/page',methods=['POST']) diff --git a/static/js/bootup.js b/static/js/bootup.js index a7e8ac2..d9b3101 100644 --- a/static/js/bootup.js +++ b/static/js/bootup.js @@ -18,10 +18,10 @@ bootup.CMSObserver = function(_sysId,_domId,_fileURI){ var uri = '/page' } try{ - var _domElement = jx.dom.get.instance('div') + // var _domElement = jx.dom.get.instance('div') - _domElement.className = 'busy-loading' - jx.dom.append(_domId, _domElement) + // _domElement.className = 'busy-loading' + // jx.dom.append(_domId, _domElement) http.post(uri,function(x){ // console.log(jx.dom.exists(_domId)) // var _domElement = jx.dom.get.instance('div') @@ -34,8 +34,21 @@ bootup.CMSObserver = function(_sysId,_domId,_fileURI){ setTimeout(function(){ - _domElement.innerHTML = x.responseText - _domElement.className = null + // _domElement.innerHTML = x.responseText + // _domElement.className = null + // $(_domElement).html(x.responseText) + + + $('#'+_domId).append(x.responseText) + + + // $(_domElement).attr('class',_domId) + + + // + // If there is a script associated it must be extracted and executed + // menu.runScript(_domId) + // console.log([_domId, ' **** ',$(_domId + ' script')]) },1500)