username@email.com
2024-12-25 0b15f032dcd39c269668f57006f6d399d4d0e999
CY_ECommercePlatform/CY.WebForm/Pages/common/CMSHead.ascx
@@ -128,9 +128,16 @@
<!--begin-->
<script type="text/javascript">
    $(function () {
        var url = window.location.href;
        var j = "";
        if (url.indexOf('?') >= 0) {
            j = url.substring(url.indexOf('?'));
        }
        var tempPathName = window.location.pathname;
        var tempContext = tempPathName.substring(1, tempPathName.length);
        var TruePath = tempContext.replace("Pages/", "../");
        var TruePath = tempContext.replace("Pages/", "../") + j;
        $.ajax({
            url: "/Pages/common/CommonAjax.aspx",
            type: "POST",
@@ -154,27 +161,28 @@
    });
</script>
<script type="text/javascript">
    $(function () {
        // menu_member_case_id="case_" menu_member_case_name=""
        var tempPathName = window.location.pathname;
        var tempContext = tempPathName.substring(1, tempPathName.length);
        var TruePath = tempContext.replace("Pages/", "../").replace("pages/", "../");
        var attrs = "";
        var texts = "";
        $("*[menu_member_case_id^='case_']").each(function (ii, vv) {
            attrs += ("," + $(vv).attr("menu_member_case_id"));
            texts += ("," + $(vv).attr("menu_member_case_name"));
        });
        $.ajax({
            url: "/Pages/common/CommonAjax.aspx",
            type: "POST",
            dataType: "html",
            data: { dateType: "creat_menu_case", menupath: TruePath, attrs: attrs, texts: texts },
            global: false,
            cache: false,
            success: function (data) {
    //$(function () {
    //    // menu_member_case_id="case_" menu_member_case_name=""
    //    var tempPathName = window.location.pathname;
    //    var tempContext = tempPathName.substring(1, tempPathName.length);
    //    var TruePath = tempContext.replace("Pages/", "../").replace("pages/", "../");
    //    var attrs = "";
    //    var texts = "";
    //    $("*[menu_member_case_id^='case_']").each(function (ii, vv) {
    //        attrs += ("," + $(vv).attr("menu_member_case_id"));
    //        texts += ("," + $(vv).attr("menu_member_case_name"));
    //    });
    //    $.ajax({
    //        url: "/Pages/common/CommonAjax.aspx",
    //        type: "POST",
    //        dataType: "html",
    //        data: { dateType: "creat_menu_case", menupath: TruePath, attrs: attrs, texts: texts },
    //        global: false,
    //        cache: false,
    //        success: function (data) {
                
            }
        });
    });
    //        }
    //    });
    //});
</script>