Changeset 780 for trunk

Show
Ignore:
Timestamp:
01/04/12 16:25:26 (5 months ago)
Author:
mgalloy
Message:

Cleaning up appearance of search results.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/resources/search.js

    r779 r780  
    149149   
    150150  html += "<li>"; 
    151   html += "<img src=\"idldoc-resources/searchbar.png\" height=\"10\" width=\"" + width + "\" />&nbsp;"; 
    152   html += "<a href=\"" + libdata[item][URL] + "\" target=\"main_frame\">" + libdata[item][NAME] + "</a><br/>"; 
     151  html += "<a href=\"" + libdata[item][URL] + "\" target=\"main_frame\">" + libdata[item][NAME] + "</a> &mdash; "; 
    153152  html += matchType + "<br/>"; 
    154153   
     
    169168  html += "</span><br/>"; 
    170169   
     170  html += "<img src=\"idldoc-resources/searchbar.png\" height=\"10\" width=\"" + width + "\" />&nbsp;"; 
     171   
    171172  html += "<span class=\"score\">Score: " + Math.round(10 * libdata[item][SCORE]) / 10; 
    172173  plural = libdata[item][N_MATCHES] > 1 ? "es" : ""; 
    173   html += " - " + libdata[item][N_MATCHES] + " match" + plural + " in "; 
     174  html += " (" + libdata[item][N_MATCHES] + " match" + plural + " in "; 
    174175   
    175176  if (mType == 3) { 
     
    191192  } 
    192193      
    193   html += type + "</span></li>"; 
     194  html += type + ")</span></li>"; 
    194195} 
    195196