diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb index c3662007..1fda9c4e 100644 --- a/app/controllers/journals_controller.rb +++ b/app/controllers/journals_controller.rb @@ -75,6 +75,6 @@ def set_journal # Only allow a trusted parameter "white list" through. def journal_params - params[:journal].permit :game_id, :event, :order + params[:journal].permit :game_id, :event, :order, :modified end end diff --git a/app/views/games/show.html.slim b/app/views/games/show.html.slim index cfe0dce5..5eb6785f 100644 --- a/app/views/games/show.html.slim +++ b/app/views/games/show.html.slim @@ -45,7 +45,7 @@ h2= @game.name { var newLi = $('
  • ').insertBefore($(this).parent()); //' var bipField = $("#{escape_javascript best_in_place(Journal.new, :event, class: 'change_journal', method: 'post', html_attrs: {style: 'width: 100%', autocomplete: 'off'})}"); - bipField.attr('data-bip-other-fields', $.param({journal: {order: $(this).data('order')}})); + bipField.attr('data-bip-other-fields', $.param({game_id: #{@game.id}, journal: {modified: true, order: $(this).data('order')}})); bipField.insertAfter(newLi); bipField.best_in_place().click(); });