diff --git a/cms/index.py b/cms/index.py index f83e5a7..d11ba06 100644 --- a/cms/index.py +++ b/cms/index.py @@ -95,7 +95,7 @@ def _index (): _app = _qcms.get(None) _uri = os.sep.join([_app.get('layout.root'),_app.get('layout.index')]) _html = _qcms.render(_uri,'index') - print (_html) + return render_template('index.html',**_html),200 #render_template('index.html',**_qcms.render(_uri,'index')),200 @_app.route("//") diff --git a/cms/static/js/search.js b/cms/static/js/search.js index 10d33cc..8cdeaea 100644 --- a/cms/static/js/search.js +++ b/cms/static/js/search.js @@ -5,10 +5,15 @@ var Search = function(_searchBoxId,_paneId,_bind){ $(_paneId).slideUp() (_paneId).children().each(_index=>{ _div = $(_paneId).children()[_index] - if (_div._data.match(_regex)){ + if (_div.html().match(_regex)){ $(_div).slideDown() } }) -} \ No newline at end of file +} + +if (!qcms) { + var qcms = {} +} +qcms.search = Search \ No newline at end of file