diff options
author | Sam Tuke <sam@donttravelempty.com> | 2012-05-11 17:13:58 +0100 |
---|---|---|
committer | Sam Tuke <sam@donttravelempty.com> | 2012-05-11 17:13:58 +0100 |
commit | d98d72aa9981063ffc101fc5c89887509c8b2770 (patch) | |
tree | 42aef7581cf29aeabc995e76af59870efd588422 /apps/files_versions/js | |
parent | c99d7dd94fe53ce3ad6b5b781d8d9f6c868ef2d9 (diff) | |
download | nextcloud-server-d98d72aa9981063ffc101fc5c89887509c8b2770.tar.gz nextcloud-server-d98d72aa9981063ffc101fc5c89887509c8b2770.zip |
improved url generation - made use of OC.linkTo() for linking to versions history page
Diffstat (limited to 'apps/files_versions/js')
-rw-r--r-- | apps/files_versions/js/versions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js index 2c92dfa3c65..eadf7a51039 100644 --- a/apps/files_versions/js/versions.js +++ b/apps/files_versions/js/versions.js @@ -25,8 +25,8 @@ $(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">'; html += '<select data-placeholder="File Version" id="found_versions" class="chzen-select">'; |