﻿function editCategoryKeyValue(categoryId, key) {
    window.open("/admin/categoryitem/" + categoryId + "/" + key, 'name', 'height=500,width=800');
    return false;

$.ajax({
    url: "/admin/categoryitem/" + categoryId + "/" + key,
    cache: false,
    //dataType: "json",
    type: "GET",
    complete: function () {

    },
    error: function (XMLHttpRequest, textStatus, errorThrown) {

    },
    success: function (data) {
        var objDiv = document.createElement("div");
        $(objDiv).html(data);

        $.fancybox({
            content: objDiv,
            width: 500,
            height: 500,
            onClose: function () {
                window.location = window.location;
            }
        });

        //            DOOMAGS.showDialog({
        //                title: DOOMAGS.getLabel("logout", "dialogTitle"),
        //                content: objDiv,
        //                width: 400,
        //                height: 150,
        //                className: "logout",
        //                modal: true,
        //                onComplete: function () {
        //                    window.location = window.location;
        //                },
        //                onClose: function () {
        //                    window.location = window.location;
        //                }
        //            });
    }
});

    
}
