From: Sam Tuke Date: Fri, 11 May 2012 12:17:37 +0000 (+0100) Subject: fixed some include path issues X-Git-Tag: v4.5.0beta1~74^2~424^2~30^2~4^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a00c5ac78ccbd581ba043d173d3f85aaf21b03dd;p=nextcloud-server.git fixed some include path issues imroved wording of history page revert instructions cleaned up js call to ajax getVersions.php --- diff --git a/apps/files_versions/ajax/getVersions.php b/apps/files_versions/ajax/getVersions.php index 5949c32ed16..8ef17d5a25c 100755 --- a/apps/files_versions/ajax/getVersions.php +++ b/apps/files_versions/ajax/getVersions.php @@ -1,8 +1,10 @@ diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js index 0508ab4cdec..2c92dfa3c65 100644 --- a/apps/files_versions/js/versions.js +++ b/apps/files_versions/js/versions.js @@ -14,28 +14,17 @@ $(document).ready(function(){ FileActions.register('file','History',function(){return OC.imagePath('core','actions/history')},function(filename){ if (scanFiles.scanning){return;}//workaround to prevent additional http request block scanning feedback - + var file = $('#dir').val()+'/'+filename; createVersionsDropdown(filename, file) - $.ajax({ - type: 'GET', - url: OC.linkTo('files_versions', 'ajax/getVersions.php'), - dataType: 'json', - data: {source: file}, - async: false, - success: function(versions) { - if (versions) { - } - } - }); - }); } }); function createVersionsDropdown(filename, files) { + var historyUrl = '../apps/files_versions/history.php?path='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename); var html = '