]> source.dussan.org Git - nextcloud-server.git/commitdiff
linked more button to history page
authorSam Tuke <sam@donttravelempty.com>
Thu, 26 Apr 2012 12:54:38 +0000 (13:54 +0100)
committerSam Tuke <sam@donttravelempty.com>
Thu, 26 Apr 2012 12:54:38 +0000 (13:54 +0100)
apps/files_versions/js/versions.js

index a74096e92589607210579648603f1f11ea2f76e0..325ef823a9c152e1ba979dacc4ef0e8e324d9354 100644 (file)
@@ -17,7 +17,8 @@ $(document).ready(function(){
 });
 
 function createVersionsDropdown(filename, files) {
-       
+       var historyUrl = '../apps/files_versions/history.php?path='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
+       //alert( historyUrl );
        var html = '<div id="dropdown" class="drop" data-file="'+files+'">';
        html += '<div id="private">';
        html += '<select data-placeholder="File Version" id="share_with" class="chzen-select">';
@@ -27,8 +28,7 @@ function createVersionsDropdown(filename, files) {
        html += '</div>';
        html += '<div id="public">';
        html += '<input type="button" name="makelink" id="makelink" value="Revert file" />';
-       html += '<input type="button" name="makelink" id="makelink" value="More..." />';
-       //html += '<input type="checkbox" name="public_link_write" id="public_link_write" value="1" /><label for="public_link_write">allow upload</label>';
+       html += '<input type="button" onclick="window.location=\''+historyUrl+'\'" name="makelink" id="makelink" value="More..." />';
        html += '<br />';
        html += '<input id="link" style="display:none; width:90%;" />';
        html += '</div>';