부대탈퇴 시 propergation 처리 실수 수정
This commit is contained in:
+9
-3
@@ -87,8 +87,14 @@ jQuery(function($){
|
|||||||
$('#form1').submit(function(){
|
$('#form1').submit(function(){
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
$('#leaveTroop').click(function(e){
|
||||||
$('.submitBtn').click(function(){
|
return confirm("정말 부대를 탈퇴하시겠습니까?");
|
||||||
|
})
|
||||||
|
$('.submitBtn').click(function(event){
|
||||||
|
if(event.isPropagationStopped()){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
console.log('b');
|
||||||
var $this=$(this);
|
var $this=$(this);
|
||||||
|
|
||||||
$.post({
|
$.post({
|
||||||
@@ -140,7 +146,7 @@ $('.submitBtn').click(function(){
|
|||||||
<?php elseif($me['troop'] == 0): ?>
|
<?php elseif($me['troop'] == 0): ?>
|
||||||
<input type=submit class='submitBtn' value='부 대 가 입'>
|
<input type=submit class='submitBtn' value='부 대 가 입'>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<input type=submit class='submitBtn' value='부 대 탈 퇴' onclick='return confirm("정말 부대를 탈퇴하시겠습니까?")'>
|
<input type=submit id="leaveTroop" class='submitBtn' value='부 대 탈 퇴'>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
</td></tr></tfoot>
|
</td></tr></tfoot>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user