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

Fix text files for search results

parent 0c86f8a6
No related branches found
No related tags found
No related merge requests found
......@@ -303,13 +303,14 @@ $(document).ready(function(){
FileActions.setDefault('application/xml','Edit');
}
OC.search.customResults.Text=function(row,item){
var text=item.link.substr(item.link.indexOf('file=')+5);
var text=item.link.substr(item.link.indexOf('?file=')+6);
var a=row.find('a');
a.data('file',text);
a.attr('href','#');
a.click(function(){
var file=text.split('/').pop();
var dir=text.substr(0,text.length-file.length-1);
var pos=text.lastIndexOf('/')
var file=text.substr(pos);
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