FIx Bug 40306

This commit is contained in:
Julia Radzhabova 2019-01-24 13:25:36 +03:00
parent 1cc43b4b84
commit 327afcfaff
15 changed files with 90 additions and 45 deletions

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Suchergebnisse" /> <meta name="description" content="Suchergebnisse" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -90,7 +91,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -124,7 +126,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -134,7 +136,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Search results" /> <meta name="description" content="Search results" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -89,7 +90,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -123,7 +125,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -133,7 +135,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Resultados de búsqueda" /> <meta name="description" content="Resultados de búsqueda" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -90,7 +91,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -124,7 +126,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -134,7 +136,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Résultats de recherche" /> <meta name="description" content="Résultats de recherche" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -89,7 +90,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -123,7 +125,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -133,7 +135,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Результаты поиска" /> <meta name="description" content="Результаты поиска" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -90,7 +91,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -124,7 +126,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -134,7 +136,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Suchergebnisse" /> <meta name="description" content="Suchergebnisse" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -90,7 +91,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -124,7 +126,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -134,7 +136,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Search results" /> <meta name="description" content="Search results" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -89,7 +90,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -123,7 +125,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -133,7 +135,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Resultados de búsqueda" /> <meta name="description" content="Resultados de búsqueda" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -90,7 +91,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -124,7 +126,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -134,7 +136,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Résultats de recherche" /> <meta name="description" content="Résultats de recherche" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -89,7 +90,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -123,7 +125,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -133,7 +135,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Результаты поиска" /> <meta name="description" content="Результаты поиска" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -90,7 +91,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -124,7 +126,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -134,7 +136,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Suchergebnisse" /> <meta name="description" content="Suchergebnisse" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -90,7 +91,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -124,7 +126,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -134,7 +136,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Search results" /> <meta name="description" content="Search results" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -89,7 +90,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -123,7 +125,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -133,7 +135,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Resultados de búsqueda" /> <meta name="description" content="Resultados de búsqueda" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -90,7 +91,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -124,7 +126,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -134,7 +136,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Résultats de recherche" /> <meta name="description" content="Résultats de recherche" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -89,7 +90,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -123,7 +125,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -133,7 +135,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(

View file

@ -5,6 +5,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="Результаты поиска" /> <meta name="description" content="Результаты поиска" />
<link type="text/css" rel="stylesheet" href="../editor.css" /> <link type="text/css" rel="stylesheet" href="../editor.css" />
<script type="text/javascript" src="../callback.js"></script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="indexes.js"></script> <script src="indexes.js"></script>
<script src="js/lunr.js"></script> <script src="js/lunr.js"></script>
@ -90,7 +91,8 @@
info.title.slice(position[0], position[0] + position[1]), info.title.slice(position[0], position[0] + position[1]),
"</span>", "</span>",
info.title.slice(position[0] + position[1]) info.title.slice(position[0] + position[1])
].join('') ].join(''),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append($('<p>').text(info.body.substring(0, 250) + "...")) .append($('<p>').text(info.body.substring(0, 250) + "..."))
@ -124,7 +126,7 @@
} }
if (commonLength > 450 && sentenceCount > 2) { if (commonLength > 450 && sentenceCount > 2) {
displayBody = displayBody.substring(0, 450) + "..." displayBody = displayBody.substring(0, 450) + "...";
return false; return false;
} }
}); });
@ -134,7 +136,8 @@
.append( .append(
$('<a>', { $('<a>', {
href: "../" + result.ref, href: "../" + result.ref,
html: info.title.substring(0, 150) html: info.title.substring(0, 150),
onclick: "onhyperlinkclick(this)"
}) })
) )
.append( .append(