improved url generation - made use of OC.linkTo() for linking to versions history page

This commit is contained in:
Sam Tuke 2012-05-11 17:13:58 +01:00
parent c99d7dd94f
commit d98d72aa99
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ $(document).ready(function(){
function createVersionsDropdown(filename, files) {
var historyUrl = '../apps/files_versions/history.php?path='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
var historyUrl = OC.linkTo('files_versions', 'history.php?path='+encodeURIComponent( $( '#dir' ).val() ).replace( /%2F/g, '/' )+'/'+encodeURIComponent( filename ) )
var html = '<div id="dropdown" class="drop" data-file="'+files+'">';
html += '<div id="private">';