Commit 5747e718 authored by Ondrej Jirman's avatar Ondrej Jirman
Browse files

URL decode class index urls

For some reason Firefox 6 (and I haven't tested any other browser)
returns a.href attribute values URL encoded. For example:

  '#%21/api/OneClick.tld.GridList'

%21 is !

When encoded value is passed to handleUrlClick, it is not matched by
regexp, and javascript error is generated.
parent 2354add1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ Ext.define('Docs.controller.Classes', {
        );

        Ext.getBody().addListener('click', function(event, el) {
            this.handleUrlClick(el.href, event);
            this.handleUrlClick(decodeURI(el.href), event);
        }, this, {
            preventDefault: true,
            delegate: '.docClass'