another corrections to cat

This commit is contained in:
rjawor 2015-10-21 09:24:23 +02:00
parent a3fa732c70
commit d1fcead779
3 changed files with 4 additions and 3 deletions

BIN
cat/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -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() {

View File

@ -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)