Merge pull request #808 from PedroTeixido/master

Fixes the behavior of the version radio button of the form to upload …
This commit is contained in:
Karel Picman 2017-11-28 14:47:01 +01:00 committed by GitHub
commit 8626d946ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@
</p>
</div>
</div>
<div class="box">
<div class="box" id="file_upload_box">
<p>
<%= label_tag('file_upload', l(:label_new_content)) %>
<%= render :partial => 'dmsf_upload/form',

View File

@ -192,11 +192,11 @@
}
});
$('#file_upload').change(function() {
$('#file_upload_box').change(function() {
if($("input[name='version']:checked").val() == '0') {
$('#fileMinorVersionRadio').prop('checked', true);
$('#version_1').prop('checked', true);
}
$('#fileSameVersionRadio').prop('disabled', true);
$('#version_0').prop('disabled', true);
});
$('#newRevisionFormContentToggle').click(function() {