Projekt

Obecné

Profil

« Předchozí | Další » 

Revize afe7e572

Přidáno uživatelem stepanekp před téměř 3 roky(ů)

updated java_doc added

Zobrazit rozdíly:

java_doc/search.js
92 92
    _renderMenu: function(ul, items) {
93 93
        var rMenu = this,
94 94
                currentCategory = "";
95
        rMenu.menu.bindings = $();
95 96
        $.each(items, function(index, item) {
96 97
            var li;
97 98
            if (item.l !== noResult.l && item.category !== currentCategory) {
......
127 128
        } else {
128 129
            label = item.l;
129 130
        }
130
        $li = $("<li/>").appendTo(ul);
131
        var li = $("<li/>").appendTo(ul);
132
        var div = $("<div/>").appendTo(li);
131 133
        if (item.category === catSearchTags) {
132 134
            if (item.d) {
133
                $("<a/>").attr("href", "#")
134
                        .html(label + "<span class=\"searchTagHolderResult\"> (" + item.h + ")</span><br><span class=\"searchTagDescResult\">"
135
                                + item.d + "</span><br>")
136
                        .appendTo($li);
135
                div.html(label + "<span class=\"searchTagHolderResult\"> (" + item.h + ")</span><br><span class=\"searchTagDescResult\">"
136
                                + item.d + "</span><br>");
137 137
            } else {
138
                $("<a/>").attr("href", "#")
139
                        .html(label + "<span class=\"searchTagHolderResult\"> (" + item.h + ")</span>")
140
                        .appendTo($li);
138
                div.html(label + "<span class=\"searchTagHolderResult\"> (" + item.h + ")</span>");
141 139
            }
142 140
        } else {
143
            $("<a/>").attr("href", "#")
144
                    .html(label)
145
                    .appendTo($li);
141
            div.html(label);
146 142
        }
147
        return $li;
143
        return li;
148 144
    }
149 145
});
150 146
$(function() {
......
323 319
                } else {
324 320
                    window.location.href = pathtoroot + url;
325 321
                }
322
                $("#search").focus();
326 323
            }
327 324
        }
328 325
    });

Také k dispozici: Unified diff