static/admin/js/Desktop.js
function () {
        var me = this;
        
        var menu = new Ext.menu.Menu({
          items: [
            {
                text: D.t('Remove shortcut'),
                handler: function() {me.removeShortcut(menu)}
            }
          ]
        });

        
        return {
            xtype: 'dataview',
            overItemCls: 'x-view-over',
            trackOver: true,
            itemSelector: me.shortcutItemSelector,
            store: me.shortcuts,
            style: {
                position: 'absolute'
            },
            x: 0, y: 0,   
            tpl: new Ext.XTemplate(me.shortcutTpl),
            listeners: {
                itemcontextmenu: function (view, record, el, index, e, eOpts) {                                
                    menu.view = view
                    menu.rec = record
                    menu.showAt(e.getXY());
                    e.stopEvent()
                }
            }
        };
    }
function () {
        var me = this;
        
        var menu = new Ext.menu.Menu({
          items: [
            {
                text: D.t('Remove shortcut'),
                handler: function() {me.removeShortcut(menu)}
            }
          ]
        });

        
        return {
            xtype: 'dataview',
            overItemCls: 'x-view-over',
            trackOver: true,
            itemSelector: me.shortcutItemSelector,
            store: me.shortcuts,
            style: {
                position: 'absolute'
            },
            x: 0, y: 0,   
            tpl: new Ext.XTemplate(me.shortcutTpl),
            listeners: {
                itemcontextmenu: function (view, record, el, index, e, eOpts) {                                
                    menu.view = view
                    menu.rec = record
                    menu.showAt(e.getXY());
                    e.stopEvent()
                }
            }
        };
    }
function ( ) { var me = this ; var menu = new Ext . menu . Menu ( { items : [ { text : D . t ( 'Remove shortcut' ) , handler : function ( ) { me . removeShortcut ( menu ) } } ] } ) ; return { xtype : 'dataview' , overItemCls : 'x-view-over' , trackOver : true , itemSelector : me . shortcutItemSelector , store : me . shortcuts , style : { position : 'absolute' } , x : 0 , y : 0 , tpl : new Ext . XTemplate ( me . shortcutTpl ) , listeners : { itemcontextmenu : function ( view , record , el , index , e , eOpts ) { menu . view = view menu . rec = record menu . showAt ( e . getXY ( ) ) ; e . stopEvent ( ) } } } ; }
------------------------------------------------------ Overrideable configuration creation methods
------------------------------------------------------ Overrideable configuration creation methods