Commit 29945ab6 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Removed long search completely from search.js

Currently not using it, so it's just getting on my way.
parent 2cef0efb
Loading
Loading
Loading
Loading
+0 −29
Original line number Diff line number Diff line
// Search box
Ext.onReady(function() {
    var searchResults = Ext.create('Ext.XTemplate',
        '<table class="searchResults">',
            '<thead>',
                '<tr>',
                    '<th></th>',
                    '<th>Result</th>',
                    '<th>Class</th>',
                '</tr>',
            '</thead>',
            '<tbody>',
                '<tpl for=".">',
                    '<tr>',
                        '<td><div class="icn icon-{iconCls}"></div></td>',
                        '<td class="result"><a href="#">{member}</td>',
                        '<td class="result"><a href="#">{cls}</td>',
                    '</tr>',
                '</tpl>',
            '</tbody>',
        '</table>'
    );

    var showContent = function(title, html) {
        Ext.getCmp('docTabPanel').hide();
        Ext.get('pageContent').setVisibilityMode(Ext.core.Element.DISPLAY).show().update(html);
    };

    var searchStore = new Ext.data.Store({
        fields: ['memberType', 'cls', 'member'],
        proxy: {
@@ -120,9 +94,6 @@ Ext.onReady(function() {
            if (curItem > 0) {
                ev.preventDefault();
                panel.handleClick();
            } else {
                var html = searchResults.apply(filterClasses(Ext.get(el).getValue(), 100));
                showContent('Search', html);
            }
        }
        else {