diff --git a/mobile/skin/shop/basic/item.form.skin.php b/mobile/skin/shop/basic/item.form.skin.php index 39e5e09ae..2e92f6958 100644 --- a/mobile/skin/shop/basic/item.form.skin.php +++ b/mobile/skin/shop/basic/item.form.skin.php @@ -361,14 +361,14 @@ $(function(){ switch(direction) { case "left": - content_slide(direction); + content_swipe(direction); fancyalert("다음 상품이 없습니다."); break; case "right": - content_slide(direction); + content_swipe(direction); fancyalert("이전 상품이 없습니다."); @@ -385,61 +385,26 @@ $(function(){ $("#container").swipe(swipeOptions); }); -function content_slide(direction) +function content_swipe(direction) { // 로딩 레이어 load_message(); + var next_href = ''; + var prev_href = ''; + var str; + + if(direction == "left") { + str = next_href; + } else { + str = prev_href; + } + + var href = str.match(/https?:\/{2}[^\"]+/gi); + setTimeout(function() { - var content = $("#container").clone() - .find("#form_btn_layer").remove() - .end().find(".sit_pvi_btn").remove() - .end().html(); - var pos = $("#container").position(); - var width = $("#container").width(); - var height = $("#container").height(); - var pad_top = $("#container").css("padding-top"); - var next_href = ''; - var prev_href = ''; - var str, left_value; - var duration = 500; - - if(direction == "left") { - str = next_href; - left_value = "-="+width+"px"; - } else { - str = prev_href; - left_value = "+="+width+"px"; - } - - $("#container") - .css({ - width: width+"px", - height: height+"px" - }) - .before("