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

Make history navigation work with front page.

parent bd876027
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ Ext.define("Docs.App", {
        // load front page when clicked on logo
        Ext.get(Ext.query(".header > h2 > a")[0]).addListener('click', function() {
            this.setIndexMode();
            Docs.History.push("");
        }, this, {preventDefault: true});

        // load guide when clicked on guide link
+3 −0
Original line number Diff line number Diff line
@@ -34,6 +34,9 @@ Ext.define("Docs.History", {
            Docs.App.setGuideMode();
            Docs.Guides.load(url.key, true);
        }
        else {
            Docs.App.setIndexMode();
        }
    },

    // Parses current browser location