HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/MBoogaard/oosting-horseriding.com/CMS/CMSModules/Content/CMSDesk/View/Listing.js
var cmsListingContentApp = '';

// Delete item action
function DeleteItem(nodeId) {
    if (nodeId != 0) {
        location.href = "../Delete.aspx?multiple=true&nodeid=" + nodeId;
    }
}

// Edit item action
function EditItem(nodeId, parentNodeId) {
    if (nodeId != 0) {
        parent.SetMode('edit', true);
        parent.SelectNode(nodeId);
        parent.RefreshTree(nodeId, nodeId);
    }
}

// Select item action
function SelectItem(nodeId) {
    if (nodeId != 0) {
        parent.SetMode('listing', true);
        parent.SelectNode(nodeId);
        parent.RefreshTree(nodeId, nodeId);
    }
}

// Redirect item
function RedirectItem(nodeId, culture) {
    if (parent != null) {
        if (parent.parent != null) {
            if (parent.parent.parent != null) {
                parent.parent.parent.location.href = "../../../../CMSDesk/default.aspx?action=edit&mode=editform&nodeid=" + nodeId + "&culture=" + culture + cmsListingContentApp;
            }
        }
    }
}