From: joinsang Date: Fri, 8 Mar 2019 03:10:45 +0000 (+0900) Subject: unzip 페이지 완성될때까지 막아둠 X-Git-Url: https://git.insang.kr/gitweb/?a=commitdiff_plain;h=2ea3b9ee734f0cbfb3949a801a44507596ddec8e;p=ZipProject.git unzip 페이지 완성될때까지 막아둠 index.js partial_unzip일경우 alert띄우고 return false로 페이지이동 막음 --- diff --git a/ZipProject/Views/WebZip/Index.cshtml b/ZipProject/Views/WebZip/Index.cshtml index 7e0ce7a..25e234d 100644 --- a/ZipProject/Views/WebZip/Index.cshtml +++ b/ZipProject/Views/WebZip/Index.cshtml @@ -51,7 +51,7 @@ - + } diff --git a/ZipProject/wwwroot/js/Zip/Index.js b/ZipProject/wwwroot/js/Zip/Index.js index f248115..8460f75 100644 --- a/ZipProject/wwwroot/js/Zip/Index.js +++ b/ZipProject/wwwroot/js/Zip/Index.js @@ -1,25 +1,27 @@ - -if (partial_page == "partial_zip"){ - $(".webzip-section-zipbutton .btn").css("background-color", "#e5e5e5"); - $(".webzip-section-zipbutton .btn").css("color", "#879292"); - $("#"+partial_page).css("background-color", "#e5e5e5"); - $("#"+partial_page).css("color", "#1f8ecd"); - $("#"+partial_page).addClass("active"); - } - else { - $(".webzip-section-zipbutton .btn").css("background-color", "#e5e5e5"); - $(".webzip-section-zipbutton .btn").css("color", "#879292"); - $("#"+partial_page).css("background-color", "#e5e5e5"); - $("#"+partial_page).css("color", "#1f8ecd"); - $("#"+partial_page).addClass("active"); - } +if (partial_page == "partial_zip") { + $(".webzip-section-zipbutton .btn").css("background-color", "#e5e5e5"); + $(".webzip-section-zipbutton .btn").css("color", "#879292"); + $("#" + partial_page).css("background-color", "#e5e5e5"); + $("#" + partial_page).css("color", "#1f8ecd"); + $("#" + partial_page).addClass("active"); +} else { + $(".webzip-section-zipbutton .btn").css("background-color", "#e5e5e5"); + $(".webzip-section-zipbutton .btn").css("color", "#879292"); + $("#" + partial_page).css("background-color", "#e5e5e5"); + $("#" + partial_page).css("color", "#1f8ecd"); + $("#" + partial_page).addClass("active"); +} - $(".webzip-section-zipbutton label").on("click", function(){ - ChangeArea("#partial_name", $(this).prop("id")); - }) - - function ChangeArea(section, page){ - $("#partial_name").val(page); - $("#frm1").submit(); - } +$(".webzip-section-zipbutton label").on("click", function() { + var id= $(this).prop("id"); + if (id == "partial_unzip"){ + alert(_Language["comingsoon"]); + return false; + } + ChangeArea("#partial_name", id); +}); +function ChangeArea(section, page) { + $("#partial_name").val(page); + $("#frm1").submit(); +}