diff --git a/app/views/dmsf_files/_file_new_revision.html.erb b/app/views/dmsf_files/_file_new_revision.html.erb index 5470c50d..6dba77f0 100644 --- a/app/views/dmsf_files/_file_new_revision.html.erb +++ b/app/views/dmsf_files/_file_new_revision.html.erb @@ -5,7 +5,7 @@ # # Copyright (C) 2011 Vít Jonáš # Copyright (C) 2012 Daniel Munn -# Copyright (C) 2011-15 Karel Pičman +# Copyright (C) 2011-16 Karel Pičman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -69,7 +69,12 @@ <%= @file.last_revision.major_version + 1 %>.0 <%= l(:option_version_major) %>
<%= radio_button_tag('version', 3) %> - <%= select_tag 'custom_version_major', options_for_select(0..99, @file.last_revision.major_version + 2) %>.<%= select_tag 'custom_version_minor', options_for_select(0..99, @file.last_revision.minor_version + 1) %> + <%= select_tag 'custom_version_major', + options_for_select(0..99, @file.last_revision.major_version + 2), + :onchange => '$("#version_3").prop("checked", true)'%>. + <%= select_tag 'custom_version_minor', + options_for_select(0..99, @file.last_revision.minor_version + 1), + :onchange => '$("#version_3").prop("checked", true)'%> <%= l(:option_version_custom) %>