Commit 491512a9 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Gray out private items in search results.

parent 04b0ddd4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ module JsDuck
        :type => :class,
        :icon => :subclass,
        :id => cls.full_name,
        :private => cls[:private],
        :sort => 0,
      }
    end
@@ -55,6 +56,7 @@ module JsDuck
        :type => :class,
        :icon => :class,
        :id => cls.full_name,
        :private => cls[:private],
        :sort => 1,
      }
    end
@@ -67,6 +69,7 @@ module JsDuck
        :type => :class,
        :icon => :subclass,
        :id => cls.full_name,
        :private => cls[:private],
        :sort => 2,
      }
    end
@@ -79,6 +82,7 @@ module JsDuck
        :type => :member,
        :icon => member[:tagname],
        :id => cls.full_name + "-" + member[:id],
        :private => member[:private],
        :sort => 3,
      }
    end
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
Ext.define('Docs.store.Search', {
    extend: 'Ext.data.Store',

    fields: ['cls', 'member', 'type', 'icon', 'id', 'sort'],
    fields: ['cls', 'member', 'type', 'icon', 'id', 'private', 'sort'],
    proxy: {
        type: 'memory',
        reader: {
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ Ext.define('Docs.view.search.Dropdown', {
            '<tpl for=".">',
                '<div class="item">',
                    '<div class="icon icon-{icon}"></div>',
                    '<div class="title">{member}</div>',
                    '<div class="title {[values.private ? "private" : ""]}">{member}</div>',
                    '<div class="class">{cls}</div>',
                '</div>',
            '</tpl>',
+3 −1
Original line number Diff line number Diff line
@@ -87,7 +87,9 @@
    .title {
      font-weight: bold;
      overflow: hidden;
      text-overflow: ellipsis; }
      text-overflow: ellipsis;
      &.private {
        color: gray; } }
    .class {
      font-size: 0.85em;
      overflow: hidden;