Commit accf6953 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Don't show the context menu on static tabs.

parent dfdfba3b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -113,7 +113,10 @@ Ext.define('Docs.view.Tabs', {

        // On right-click open the overflow menu as context-menu
        this.el.on('contextmenu', function(event, el) {
            // don't show the menu on static tabs
            if (!Ext.get(el).hasCls('overview')) {
                this.createMenu().showBy(el);
            }
        }, this, {
            delegate: '.doctab',
            preventDefault: true