From c764164a492cbf5aefb95974d37c7549e3930ec8 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 11 Jun 2016 15:30:34 +0000 Subject: [PATCH] fixed a bug of submitting yes when the unzip button is not checked in the code folder view --- codepot/src/codepot/views/code_folder.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codepot/src/codepot/views/code_folder.php b/codepot/src/codepot/views/code_folder.php index 5a35ea0b..e07d7331 100644 --- a/codepot/src/codepot/views/code_folder.php +++ b/codepot/src/codepot/views/code_folder.php @@ -280,7 +280,10 @@ $(function () { var form_data = new FormData(); form_data.append ('code_new_message', $('#code_folder_mainarea_new_message').val()); - form_data.append ('code_new_item_unzip', $('#code_folder_mainarea_new_item_unzip').val()); + if ($('#code_folder_mainarea_new_item_unzip').is(':checked')) + 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; for (var i = 0; i <= new_item_no; i++)