From 16facf98f1837e75c481c67e10eecea9a1c949c0 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 28 Jul 2018 01:32:00 +0900 Subject: [PATCH] =?UTF-8?q?submit=5Fbtn=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/templates/recruitCrewForm.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hwe/templates/recruitCrewForm.php b/hwe/templates/recruitCrewForm.php index 4790ea62..efe19454 100644 --- a/hwe/templates/recruitCrewForm.php +++ b/hwe/templates/recruitCrewForm.php @@ -127,7 +127,7 @@ $(function(){ $('.btn_half').click(function(){ var $this = $(this); - var $parent = $this.parents('.input_form'); + var $parent = $this.closest('.input_form'); var crewtype = parseInt($parent.data('crewtype')); var $input = $parent.find('.form_double:eq(0)'); @@ -139,7 +139,7 @@ $(function(){ $('.btn_fill').click(function(){ var $this = $(this); - var $parent = $this.parents('.input_form'); + var $parent = $this.closest('.input_form'); var crewtype = parseInt($parent.data('crewtype')); var $input = $parent.find('.form_double:eq(0)'); @@ -154,7 +154,7 @@ $(function(){ $('.btn_full').click(function(){ var $this = $(this); - var $parent = $this.parents('.input_form'); + var $parent = $this.closest('.input_form'); var crewtype = parseInt($parent.data('crewtype')); var $input = $parent.find('.form_double:eq(0)'); @@ -166,9 +166,9 @@ $(function(){ $('.submit_btn').click(function(){ var $this = $(this); - var $parent = $this.parents('.input_form'); + var $parent = $this.closest('tr').find('.input_form'); var crewtype = parseInt($parent.data('crewtype')); - var $input = $parent.find('.form_double:eq(0)'); + var $input = $parent.find('.form_double'); $formCrewtype.val(crewtype); $formAmount.val($input.val());