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

Fix open new tab from favs grid in IE and Firefox.

Same thing as with tree in previous commit.
parent 6227308c
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -48,7 +48,10 @@ Ext.define('Docs.view.ClassGrid', {
            },
            {
                dataIndex: 'title',
                flex: true
                flex: true,
                renderer: function(title, data, r) {
                    return Ext.String.format('<a href="#{0}" rel="{0}" class="docClass">{1}</a>', r.get("url"), title);
                }
            }
        ];

@@ -70,8 +73,10 @@ Ext.define('Docs.view.ClassGrid', {
        this.callParent(arguments);

        this.on("itemclick", function(view, record, item, index, event) {
            // Don't fire urlclick when close button clicked
            if (!event.getTarget("img")) {
            // Only fire urlclick when the row background is clicked
            // (that doesn't contain neither the link nor the close
            // button).
            if (!event.getTarget("img") && !event.getTarget("a")) {
                this.fireEvent("urlclick", record.get("url"), event);
            }
        }, this);
+2 −2
Original line number Diff line number Diff line
@@ -239,8 +239,8 @@ a {
    background: #e9e9e9 url(../images/drag-bar-center.png) no-repeat center;
    border-width: 1px 0; } }

// Use normal color for class-links in tree
.class-tree {
// Use normal color for class-links in tree and favorites grid
.class-tree, #favorites-grid {
  .docClass, .docClass:hover {
    color: #000; } }