fixed path to history script

This commit is contained in:
Sam Tuke 2012-04-25 14:27:55 +01:00
parent 02a65f30ec
commit a3dff248a1
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ $(document).ready(function(){
// Add history button to files/index.php
FileActions.register('file','History',function(){return OC.imagePath('core','actions/history')},function(filename){
window.location='../apps/files_versioning/history.php?file='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
window.location='../apps/files_versions/history.php?path='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
});
});