Fix extra loaded js: the widgets only need to render layout when they need js.
This commit is contained in:
1 parent
7c55f6fb88
commit
0b1f83c042
2 files changed
+2
-1
No files matched your search
@@ -1,7 +1,7 @@
|
||||
class OrbitFrontendComponentController< ApplicationController
|
||||
before_filter :setup_vars
|
||||
before_filter {|c| c.front_end_available(@app_title)}
|
||||
layout 'module_widget'
|
||||
layout :false
|
||||
|
||||
def setup_vars
|
||||
@app_title = request.fullpath.split('/')[2]
|
||||
|
||||
Reference in new issue
Block a user