Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development'
Browse files Browse the repository at this point in the history
  • Loading branch information
zpaulovics committed Jun 2, 2015
2 parents c5405f3 + 7451e15 commit 36d21ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/datetimepicker-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Datetimepicker
module Rails
VERSION = "4.7.15"
VERSION = "4.7.16"
end
end
6 changes: 4 additions & 2 deletions lib/generators/templates/inputs/date_picker_input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ def date_view_header_format
def date_options_base
{
locale: I18n.locale.to_s,
format: picker_pattern
format: picker_pattern,
dayViewHeaderFormat: date_view_header_format
}
end

def date_options
date_options_base.merge!({dayViewHeaderFormat: date_view_header_format})
custom_options = input_html_options[:data][:date_options] || {}
date_options_base.merge!(custom_options)
end

end

0 comments on commit 36d21ce

Please sign in to comment.