picker changes for calendar

This commit is contained in:
Harry Bomrah 2015-06-03 17:39:29 +08:00
parent 177df2738b
commit 7db11d7fef
3 changed files with 14 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -40,8 +40,10 @@ class Admin::CalendarTypesController < OrbitAdminController
calendar.update_attributes(calendar_type_params)
calendar.save
category = calendar.category
category.title_translations = calendar_type_params["title_translations"]
category.save
if !category.nil?
category.title_translations = calendar_type_params["title_translations"]
category.save
end
end
redirect_to admin_calendar_types_path

View File

@ -1,6 +1,6 @@
<%= stylesheet_link_tag "jquery.miniColors" %>
<%= javascript_include_tag "jquery.miniColors.min" %>
<%= javascript_include_tag "jquery.miniColors.min.calendar" %>
<%= javascript_include_tag "category_type" %>
<div id="categories_index">