another corrections to cat
This commit is contained in:
parent
a3fa732c70
commit
d1fcead779
BIN
cat/favicon.ico
Normal file
BIN
cat/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
@ -71,9 +71,9 @@ function displayDetails(caller, number) {
|
||||
$('#fragment'+number).css('display', 'block');
|
||||
}
|
||||
|
||||
function searchText(text) {
|
||||
function searchText(text, tmid) {
|
||||
$("#searchInput").val(text);
|
||||
searchHandle();
|
||||
searchHandle(tmid);
|
||||
}
|
||||
|
||||
function showHideSuggestions() {
|
||||
|
@ -20,6 +20,7 @@ if len(os.listdir(root_dir))>0:
|
||||
shutil.copytree('js', root_dir+'/js')
|
||||
shutil.copytree('css', root_dir+'/css')
|
||||
shutil.copytree('images', root_dir+'/images')
|
||||
shutil.copy('favicon.ico', root_dir+'/favicon.ico')
|
||||
|
||||
|
||||
versions_dir = 'versions'
|
||||
@ -48,7 +49,7 @@ for version in versions:
|
||||
if field == 'suggestions':
|
||||
suggestions_html = ''
|
||||
for suggestion in value:
|
||||
suggestions_html+='<li>'+suggestion+'<span class="suggestion" onclick="searchText(\''+suggestion+'\');">apply</span></li>'
|
||||
suggestions_html+='<li>'+suggestion+' <span class="suggestion" onclick="searchText(\''+suggestion+'\', '+version['tmid']+');">apply</span></li>'
|
||||
line = re.sub('@suggestions@', suggestions_html, line)
|
||||
else:
|
||||
line = re.sub('@'+field+'@', value, line)
|
||||
|
Loading…
Reference in New Issue
Block a user