[Enhancement] Automatically check the inline radiobutton when use custom version #500
This commit is contained in:
parent
a71396fda4
commit
c887e76af5
@ -5,7 +5,7 @@
|
||||
#
|
||||
# Copyright (C) 2011 Vít Jonáš <vit.jonas@gmail.com>
|
||||
# Copyright (C) 2012 Daniel Munn <dan.munn@munnster.co.uk>
|
||||
# Copyright (C) 2011-15 Karel Pičman <karel.picman@kontron.com>
|
||||
# Copyright (C) 2011-16 Karel Pičman <karel.picman@kontron.com>
|
||||
#
|
||||
# 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) %><br/>
|
||||
<%= 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) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user