Skip to content
Snippets Groups Projects
Commit b05be2f2 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Fix textviewer in search results

parent 6afc17be
No related branches found
No related tags found
No related merge requests found
......@@ -122,10 +122,9 @@ $(document).ready(function() {
a.data('file',text);
a.attr('href','#');
a.click(function(){
var file=$(this).data('file');
var text=file.split('/').pop();
var dir=file.substr(0,file.length-file.length-1);
TextViewer.showText(dir,text);
var file=text.split('/').pop();
var dir=text.substr(0,text.length-file.length-1);
TextViewer.showText(dir,file);
});
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment