gallery options
This commit is contained in:
1 parent
2a122c7f5c
commit
baf1240b76
15 files changed
+66
-17
No files matched your search
@@ -90,6 +90,7 @@ class Admin::PagePartsController < ApplicationController
|
||||
end
|
||||
|
||||
def reload_widgets
|
||||
@part = PagePart.find params[:part_id]
|
||||
@categories =[]
|
||||
@module_app = ModuleApp.find(params[:id])
|
||||
|
||||
@@ -112,6 +113,7 @@ class Admin::PagePartsController < ApplicationController
|
||||
@tags = ArchiveTag.all
|
||||
end
|
||||
|
||||
@part.widget_path = @module_app.widgets.first if @module_app.needs_to_widget_option?
|
||||
respond_to do |format|
|
||||
format.js {}
|
||||
end
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
class OrbitWidgetController< OrbitFrontendComponentController
|
||||
before_filter :get_wiget_options
|
||||
|
||||
def get_wiget_options
|
||||
@wiget_options = {}
|
||||
if params[:widget_options]
|
||||
@wiget_options = (eval('{'+ params[:widget_options] +'}') rescue {})
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user