Minor cleanups. Javascript only called once. Hidden sections now work

This commit is contained in:
Piotr Mitros
2011-12-27 19:35:40 -05:00
parent e21b9191ae
commit a7b5433c36
4 changed files with 4 additions and 16 deletions

View File

@@ -51,7 +51,6 @@ def modx_dispatch(request, module=None, dispatch=None, id=None):
ajax_url = '/modx/'+module+'/'+id+'/'
id_tag=modx_modules[module].id_attribute
#print "X",s.xml, "Y",content_parser.module_xml(module, id_tag, id)
xml = content_parser.module_xml(content_parser.course_file(request.user), module, id_tag, id)
@@ -97,7 +96,7 @@ def seq_module(request, module):
for e in module.childNodes \
if e.nodeType==1]
js="".join([e[1]['init_js'] for e in contents if 'init_js' in e[1]])
js=""
iid=uuid.uuid1().hex