fix widget field reload

This commit is contained in:
Fu Matthew authored and chris committed 2013-02-27 10:51:41 +08:00
1 parent 071e8a349c
commit 0dabd5b95f
9 files changed
+50 -21

No files matched your search

@@ -108,6 +108,7 @@ class Admin::PagePartsController < ApplicationController
@part = PagePart.find params[:id]
@choosen_field = params[:widget_field_value]
@module_app = @part.module_app
@module_app = ModuleApp.find params[:module_app_id] if @module_app.nil?
end
def reload_widgets
@@ -180,4 +180,12 @@ helper Admin::PagePartsHelper
end
end
def reload_widget_field
@index = params[:field_seri].to_i
@page = Page.find params[:id]
@choosen_field = params[:widget_field_value]
@module_app = @page.module_app
@module_app = ModuleApp.find params[:module_app_id] if @module_app.nil?
end
end