picker changes for calendar
This commit is contained in:
parent
177df2738b
commit
7db11d7fef
File diff suppressed because one or more lines are too long
|
@ -40,9 +40,11 @@ class Admin::CalendarTypesController < OrbitAdminController
|
||||||
calendar.update_attributes(calendar_type_params)
|
calendar.update_attributes(calendar_type_params)
|
||||||
calendar.save
|
calendar.save
|
||||||
category = calendar.category
|
category = calendar.category
|
||||||
|
if !category.nil?
|
||||||
category.title_translations = calendar_type_params["title_translations"]
|
category.title_translations = calendar_type_params["title_translations"]
|
||||||
category.save
|
category.save
|
||||||
end
|
end
|
||||||
|
end
|
||||||
redirect_to admin_calendar_types_path
|
redirect_to admin_calendar_types_path
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<%= stylesheet_link_tag "jquery.miniColors" %>
|
<%= stylesheet_link_tag "jquery.miniColors" %>
|
||||||
|
|
||||||
<%= javascript_include_tag "jquery.miniColors.min" %>
|
<%= javascript_include_tag "jquery.miniColors.min.calendar" %>
|
||||||
<%= javascript_include_tag "category_type" %>
|
<%= javascript_include_tag "category_type" %>
|
||||||
|
|
||||||
<div id="categories_index">
|
<div id="categories_index">
|
||||||
|
|
Loading…
Reference in New Issue