$(document).ready(function(){
// Add history button to files/index.php
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)
//window.location='../apps/files_versions/history.php?path='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
});
});
function createVersionsDropdown(filename, files) {
var html = '
';
html += '
';
html += '';
html += '
';
html += '
';
html += '
';
html += '';
html += '';
//html += '';
html += ' ';
html += '';
html += '