From 070eb8de776f5d4735213bdcaecae36d4b9b72b5 Mon Sep 17 00:00:00 2001 From: zpaulovics Date: Sat, 21 Mar 2015 14:41:52 +0100 Subject: [PATCH] Improve the layout of the picker.js options --- lib/generators/datetimepicker_rails/install_generator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generators/datetimepicker_rails/install_generator.rb b/lib/generators/datetimepicker_rails/install_generator.rb index fd0fe17..bd4df22 100644 --- a/lib/generators/datetimepicker_rails/install_generator.rb +++ b/lib/generators/datetimepicker_rails/install_generator.rb @@ -65,7 +65,7 @@ def create_pickers_js $(document).on('ready page:change', function() { $('.datetimepicker').datetimepicker({ // put here your custom picker options, that should be applied for all pickers - #{icons} +#{icons} }); $('.datetimerange').each(function(){ @@ -138,7 +138,7 @@ def get_icons icons += " today: \'#{options[:custom_icons][:today]}\',\n" icons += " clear: \'#{options[:custom_icons][:clear]}\',\n" icons += " close: \'#{options[:custom_icons][:close]}\'\n" - icons += " }\n" + icons += " }" end end