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

Fix accidental creation of duplicate files because of extra / in search results

parent a3f250bf
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ $(document).ready(function() {
a.attr('href','#');
a.click(function(){
var pos=image.lastIndexOf('/')
var file=image.substr(pos);
var file=image.substr(pos + 1);
var dir=image.substr(0,pos);
viewImage(dir,file);
});
......
......@@ -309,7 +309,7 @@ $(document).ready(function(){
a.attr('href','#');
a.click(function(){
var pos=text.lastIndexOf('/')
var file=text.substr(pos);
var file=text.substr(pos + 1);
var dir=text.substr(0,pos);
showFileEditor(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