[FOLLOWUP][TASK] Refactor debugger console 42/39342/2
authorWouter Wolters <typo3@wouterwolters.nl>
Thu, 7 May 2015 16:57:09 +0000 (18:57 +0200)
committerBenjamin Mack <benni@typo3.org>
Thu, 7 May 2015 17:01:44 +0000 (19:01 +0200)
Remove unused JavaScript file

Resolves: #65956
Releases: master
Change-Id: I6e79a454d24cdc9b16e953ff1d24f4512a97e314
Reviewed-on: http://review.typo3.org/39342
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
typo3/sysext/backend/Classes/Controller/BackendController.php
typo3/sysext/backend/Resources/Public/JavaScript/extjs/ux/ext.ux.tabclosemenu.js [deleted file]

index e94dc70..07ccef2 100644 (file)
@@ -116,7 +116,6 @@ class BackendController {
                        'md5' => 'sysext/backend/Resources/Public/JavaScript/md5.js',
                        'modulemenu' => 'sysext/backend/Resources/Public/JavaScript/modulemenu.js',
                        'evalfield' => 'sysext/backend/Resources/Public/JavaScript/jsfunc.evalfield.js',
-                       'tabclosemenu' => 'sysext/backend/Resources/Public/JavaScript/extjs/ux/ext.ux.tabclosemenu.js',
                        'notifications' => 'sysext/backend/Resources/Public/JavaScript/notifications.js',
                        'backend' => 'sysext/backend/Resources/Public/JavaScript/backend.js',
                        'viewport' => 'sysext/backend/Resources/Public/JavaScript/extjs/viewport.js',
diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/extjs/ux/ext.ux.tabclosemenu.js b/typo3/sysext/backend/Resources/Public/JavaScript/extjs/ux/ext.ux.tabclosemenu.js
deleted file mode 100644 (file)
index 3893368..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-/*!
- * Ext JS Library 3.2.1
- * Copyright(c) 2006-2010 Ext JS, Inc.
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-/**
- * @class Ext.ux.TabCloseMenu
- * @extends Object 
- * Plugin (ptype = 'tabclosemenu') for adding a close context menu to tabs. Note that the menu respects
- * the closable configuration on the tab. As such, commands like remove others and remove all will not
- * remove items that are not closable.
- * 
- * @constructor
- * @param {Object} config The configuration options
- * @ptype tabclosemenu
- */
-Ext.ux.TabCloseMenu = Ext.extend(Object, {
-    /**
-     * @cfg {String} closeTabText
-     * The text for closing the current tab. Defaults to <tt>'Close Tab'</tt>.
-     */
-    closeTabText: 'Close Tab',
-
-    /**
-     * @cfg {String} closeOtherTabsText
-     * The text for closing all tabs except the current one. Defaults to <tt>'Close Other Tabs'</tt>.
-     */
-    closeOtherTabsText: 'Close Other Tabs',
-    
-    /**
-     * @cfg {Boolean} showCloseAll
-     * Indicates whether to show the 'Close All' option. Defaults to <tt>true</tt>. 
-     */
-    showCloseAll: true,
-
-    /**
-     * @cfg {String} closeAllTabsText
-     * <p>The text for closing all tabs. Defaults to <tt>'Close All Tabs'</tt>.
-     */
-    closeAllTabsText: 'Close All Tabs',
-    
-    /**
-        * @cfg {Array} custom menu entries
-        */
-       customMenuEntries: [],
-
-    
-    constructor : function(config){
-        Ext.apply(this, config || {});
-    },
-
-    //public
-    init : function(tabs){
-        this.tabs = tabs;
-        tabs.on({
-            scope: this,
-            contextmenu: this.onContextMenu,
-            destroy: this.destroy
-        });
-    },
-    
-    destroy : function(){
-        Ext.destroy(this.menu);
-        delete this.menu;
-        delete this.tabs;
-        delete this.active;    
-    },
-
-    // private
-    onContextMenu : function(tabs, item, e){
-        this.active = item;
-        var m = this.createMenu(),
-            disableAll = true,
-            disableOthers = true,
-            closeAll = m.getComponent('closeall');
-        
-        m.getComponent('close').setDisabled(!item.closable);
-        tabs.items.each(function(){
-            if(this.closable){
-                disableAll = false;
-                if(this != item){
-                    disableOthers = false;
-                    return false;
-                }
-            }
-                       return true;
-        });
-        m.getComponent('closeothers').setDisabled(disableOthers);
-        if(closeAll){
-            closeAll.setDisabled(disableAll);
-        }
-        
-        e.stopEvent();
-        m.showAt(e.getPoint());
-    },
-    
-    createMenu : function(){
-        if(!this.menu){
-            var items = [{
-                itemId: 'close',
-                text: this.closeTabText,
-                scope: this,
-                handler: this.onClose
-            }];
-            if(this.showCloseAll){
-                items.push('-');
-            }
-            items.push({
-                itemId: 'closeothers',
-                text: this.closeOtherTabsText,
-                scope: this,
-                handler: this.onCloseOthers
-            });
-            if(this.showCloseAll){
-                items.push({
-                    itemId: 'closeall',
-                    text: this.closeAllTabsText,
-                    scope: this,
-                    handler: this.onCloseAll
-                });
-            }
-            if (this.customMenuEntries.length) {
-               this.customMenuEntries.each(function(item) {
-                       items.push(item);
-               });
-            }
-            
-            this.menu = new Ext.menu.Menu({
-                items: items
-            });
-        }
-        return this.menu;
-    },
-    
-    onClose : function(){
-        this.tabs.remove(this.active);
-    },
-    
-    onCloseOthers : function(){
-        this.doClose(true);
-    },
-    
-    onCloseAll : function(){
-        this.doClose(false);
-    },
-    
-    doClose : function(excludeActive){
-        var items = [];
-        this.tabs.items.each(function(item){
-            if(item.closable){
-                if(!excludeActive || item != this.active){
-                    items.push(item);
-                }    
-            }
-        }, this);
-        Ext.each(items, function(item){
-            this.tabs.remove(item);
-        }, this);
-    }
-});
-
-Ext.preg('tabclosemenu', Ext.ux.TabCloseMenu);