mods for calendar

This commit is contained in:
rulingcom 2015-06-01 16:03:45 +08:00
parent a979bedac8
commit 37e58c00d0
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,13 @@ class CalendarsController < ApplicationController
}
end
def widget
part = OrbitHelper.get_current_widget
{
"extras" => {"subpart-id"=>part.id.to_s}
}
end
def events
page = Page.find_by(:page_id => params[:page_id]) rescue nil
events =[]