Commit 0c07f03d by ichuang

XModule.loadModules only takes @el as argument now

parent e59b0b87
...@@ -18,9 +18,9 @@ class @Conditional ...@@ -18,9 +18,9 @@ class @Conditional
render: (content) -> render: (content) ->
if content if content
@el.html(content) @el.html(content)
XModule.loadModules('display', @el) XModule.loadModules(@el)
else else
$.postWithPrefix "#{@url}/conditional_get", (response) => $.postWithPrefix "#{@url}/conditional_get", (response) =>
@el.html(response.html) @el.html(response.html)
XModule.loadModules('display', @el) XModule.loadModules(@el)
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