Commit 1d87498f authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Keep search dropdown visible when < or > clicked in IE9.

A strange case where IE9 behaves worse than IE7 and 8.
parent a84690c8
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -35,11 +35,12 @@ Ext.define('Docs.controller.Search', {
                    // increment page number and update search results display
                    this.pageIndex += delta;
                    this.search(this.getField().getValue());
                    // footerClick doesn't fire in IE9,
                    // so keep the dropdown visible explicitly.
                    this.keepDropdown();
                },
                footerClick: function(dropdown, delta) {
                    // don't hide dropdown
                    clearTimeout(this.hideTimeout);
                    this.getField().focus();
                footerClick: function(dropdown) {
                    this.keepDropdown();
                }
            },
            '#search-field': {
@@ -118,6 +119,12 @@ Ext.define('Docs.controller.Search', {
        return this.dropdown || (this.dropdown = Ext.getCmp('search-dropdown'));
    },

    // Cancels hiding of dropdown
    keepDropdown: function() {
        clearTimeout(this.hideTimeout);
        this.getField().focus();
    },

    // loads class/method corrseponding to the record
    loadRecord: function(record) {
        Docs.App.getController('Classes').loadClass("#!/api/"+record.get("id"));