diff --git a/tools/droiddoc/templates-sdk/assets/js/docs.js b/tools/droiddoc/templates-sdk/assets/js/docs.js index 1996daca4..6630bf936 100644 --- a/tools/droiddoc/templates-sdk/assets/js/docs.js +++ b/tools/droiddoc/templates-sdk/assets/js/docs.js @@ -23,7 +23,7 @@ var navBarIsFixed = false; $(document).ready(function() { // load json file for JD doc search suggestions - $.getScript(toRoot + 'reference/jd_lists.js'); + $.getScript(toRoot + 'jd_lists_unified.js'); // load json file for Android API search suggestions $.getScript(toRoot + 'reference/lists.js'); // load json files for Google services API suggestions @@ -1539,6 +1539,13 @@ function set_item_values(toroot, $li, match) $link.attr('href',toroot + match.link); } +function set_item_values_jd(toroot, $li, match) +{ + var $link = $('a',$li); + $link.html(match.title); + $link.attr('href',toroot + match.url); +} + function new_suggestion($list) { var $li = $("
"); $list.append($li); @@ -1615,6 +1622,9 @@ function sync_selection_table(toroot) $(".search_filtered_wrapper.docs li").remove(); // determine google results to show + // NOTE: The order of the conditions below for the sugg.type MUST BE SPECIFIC: + // The order must match the reverse order that each section appears as a card in + // the suggestion UI... this may be only for the "develop" grouped items though. gDocsListLength = gDocsMatches.length < ROW_COUNT_DOCS ? gDocsMatches.length : ROW_COUNT_DOCS; for (i=0; i