Skip to content

Commit

Permalink
Upgrade to jQuery 1.7.1 and fixed html highlight bug in long description
Browse files Browse the repository at this point in the history
Sumh <42424861@qq.com>
  • Loading branch information
Sumh committed Nov 23, 2011
1 parent e897165 commit 1ce44c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions classes/controller/jqdoc.php
Expand Up @@ -275,17 +275,17 @@ public function parse_entries()
// desc
if(isset($html[$method]))
{
$html[$method] .= '<h2 class="jq-clearfix section-title"><span class="returns">Returns: <a class="return" href="Types.htm#'
$html[$method] .= '<h3 class="jq-clearfix section-title"><span class="returns">Returns: <a class="return" href="Types.htm#'
.$properties['return'].'">'.$properties['return'].'</a></span>'.$properties['return'].'<span class="name"> '.$function
.'</span><a name="'.$id.'"></a></h2><div class="entry-content"><div class="entry-meta">Categories: <span class="category">'.implode(', ', $categories).'</span></div>
.'</span><a name="'.$id.'"></a></h3><div class="entry-content"><div class="entry-meta">Categories: <span class="category">'.implode(', ', $categories).'</span></div>
<div class="desc"><strong>Description: </strong>'.$properties['desc'].'</div>'.$signatures;
$multi_entry = TRUE;
}
else
{
$html[$method] = '<h2 class="jq-clearfix section-title"><span class="returns">Returns: <a class="return" href="Types.htm#'
$html[$method] = '<h3 class="jq-clearfix section-title"><span class="returns">Returns: <a class="return" href="Types.htm#'
.$properties['return'].'">'.$properties['return'].'</a></span>'.$properties['return'].'<span class="name"> '.$function
.'</span><a name="'.$id.'"></a></h2><div class="entry-content"><div class="entry-meta">Categories: <span class="category">'.implode(', ', $categories).'</span></div>
.'</span><a name="'.$id.'"></a></h3><div class="entry-content"><div class="entry-meta">Categories: <span class="category">'.implode(', ', $categories).'</span></div>
<div class="desc"><strong>Description: </strong>'.$properties['desc'].'</div>'.$signatures;
}

Expand All @@ -297,7 +297,8 @@ public function parse_entries()
{
$name = $tags->getName();
$tags = preg_replace('@href=".*?/([a-zA-z.]+)/?"@', 'href="$1.htm"',$tags->asXML());
$html[$method] .= str_replace('<pre', '<pre class="sunlight-highlight-javascript"',$tags);
$tags = str_replace('<pre>&lt;', '<pre class="sunlight-highlight-html">&lt;',$tags);
$html[$method] .= str_replace('<pre>', '<pre class="sunlight-highlight-javascript">',$tags);
}
$html[$method] .= '</div>';
}
Expand Down
Binary file modified jQuery-UI-Reference-1.7.chm
Binary file not shown.
2 changes: 1 addition & 1 deletion media/style.css
Expand Up @@ -1464,7 +1464,7 @@ html.js #jq-download input {
color: #fff;
padding: 6px 20px;
margin:0;
font-size: 1.7em;
font-size: 1.5em;
}
.api-jquery-com #jq-interiorNavigation .section-title{
border: none;
Expand Down

0 comments on commit 1ce44c8

Please sign in to comment.