gallery options

This commit is contained in:
Fu Matthew committed 2012-12-28 15:30:46 +08:00
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