alert 함수 대체 fancyalert 함수 추가

This commit is contained in:
chicpro
2013-10-21 17:13:38 +09:00
parent cb130df525
commit c03bfc6afc
3 changed files with 45 additions and 5 deletions

View File

@ -4,6 +4,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<link rel="stylesheet" href="<?php echo G5_MSHOP_SKIN_URL; ?>/style.css">
<script src="<?php echo G5_JS_URL; ?>/jquery.touchSwipe.min.js"></script>
<script src="<?php echo G5_JS_URL; ?>/jquery.fancyalert.js"></script>
<form name="fitem" action="<?php echo $action_url; ?>" method="post" onsubmit="return fitem_submit(this);">
<input type="hidden" name="it_id[]" value="<?php echo $it['it_id']; ?>">
@ -384,29 +385,33 @@ $(function(){
});
// 이전 다음상품 swipe
$("#container").swipe({
var swipeOptions = {
swipe: function(event, direction) {
switch(direction) {
case "left":
<?php if($next_href) { ?>
content_move(direction);
<?php } else { ?>
alert("다음 상품이 없습니다.");
fancyalert("다음 상품이 없습니다.");
<?php } ?>
break;
case "right":
<?php if($prev_href) { ?>
content_move(direction);
<?php } else { ?>
alert("이전 상품이 없습니다.");
fancyalert("이전 상품이 없습니다.");
<?php } ?>
break;
}
return false;
},
threshold: 50,
excludedElements:".noSwipe",
allowPageScroll:"vertical"
});
};
$("#container").swipe(swipeOptions);
});
function content_move(direction)