fixed a bug of submitting yes when the unzip button is not checked in the code folder view

This commit is contained in:
hyung-hwan 2016-06-11 15:30:34 +00:00
parent e49e69a84e
commit c764164a49

View File

@ -280,7 +280,10 @@ $(function () {
var form_data = new FormData(); var form_data = new FormData();
form_data.append ('code_new_message', $('#code_folder_mainarea_new_message').val()); form_data.append ('code_new_message', $('#code_folder_mainarea_new_message').val());
if ($('#code_folder_mainarea_new_item_unzip').is(':checked'))
form_data.append ('code_new_item_unzip', $('#code_folder_mainarea_new_item_unzip').val()); form_data.append ('code_new_item_unzip', $('#code_folder_mainarea_new_item_unzip').val());
else
form_data.append ('code_new_item_unzip', '');
var f_no = 0, d_no = 0, ef_no = 0; var f_no = 0, d_no = 0, ef_no = 0;
for (var i = 0; i <= new_item_no; i++) for (var i = 0; i <= new_item_no; i++)