summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/js
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2012-05-16 18:30:26 +0100
committerSam Tuke <samtuke@owncloud.com>2012-05-16 18:30:26 +0100
commit9acd1065b0b96f5e82444e98273cc613872a8e28 (patch)
tree460f3d58f2690b832b627378625bb204f07253c6 /apps/files_versions/js
parentfefa4412c4e4bab82517cca6f92680bcf0c71c2d (diff)
downloadnextcloud-server-9acd1065b0b96f5e82444e98273cc613872a8e28.tar.gz
nextcloud-server-9acd1065b0b96f5e82444e98273cc613872a8e28.zip
made initial testing version of expireAll for version control \ngave some old vars new camelcase names
Diffstat (limited to 'apps/files_versions/js')
-rw-r--r--apps/files_versions/js/versions.js4
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">';