static/admin/js/Desktop.js
function (menu) {
        var items = menu.items.items, win = menu.theWin;
        items[0].setDisabled(win.maximized !== true && win.hidden !== true); // Restore
        items[1].setDisabled(win.minimized === true); // Minimize
        items[2].setDisabled(win.maximized === true || win.hidden === true); // Maximize
        items[4].setDisabled(!!win.noShortcut);
        items[5].setDisabled(!!win.noShortcut);
    }
function (menu) {
        var items = menu.items.items, win = menu.theWin;
        items[0].setDisabled(win.maximized !== true && win.hidden !== true); // Restore
        items[1].setDisabled(win.minimized === true); // Minimize
        items[2].setDisabled(win.maximized === true || win.hidden === true); // Maximize
        items[4].setDisabled(!!win.noShortcut);
        items[5].setDisabled(!!win.noShortcut);
    }
function ( menu ) { var items = menu . items . items , win = menu . theWin ; items [ 0 ] . setDisabled ( win . maximized !== true && win . hidden !== true ) ; // Restore items [ 1 ] . setDisabled ( win . minimized === true ) ; // Minimize items [ 2 ] . setDisabled ( win . maximized === true || win . hidden === true ) ; // Maximize items [ 4 ] . setDisabled ( ! ! win . noShortcut ) ; items [ 5 ] . setDisabled ( ! ! win . noShortcut ) ; }
------------------------------------------------------ Window context menu handlers
------------------------------------------------------ Window context menu handlers