From 18a024e251cbcdaafb0ef2893cd5cf8544b03f4d Mon Sep 17 00:00:00 2001 From: Sam Tuke Date: Thu, 26 Apr 2012 18:45:17 +0100 Subject: started implementing ajax file rollback --- apps/files_versions/js/versions.js | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) (limited to 'apps/files_versions/js') diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js index 5018b75f154..a9e60a0cfa6 100644 --- a/apps/files_versions/js/versions.js +++ b/apps/files_versions/js/versions.js @@ -17,17 +17,7 @@ $(document).ready(function(){ async: false, success: function(versions) { if (versions) { - - // icon = OC.imagePath('core', 'actions/shared'); - // $.each(users, function(index, row) { - // if (row.uid_shared_with == 'public') { - // icon = OC.imagePath('core', 'actions/public'); - // } - // }); - // } else { - // icon = OC.imagePath('core', 'actions/share'); } - shared_status[file]= { timestamp: new Date().getTime(), icon: icon }; } }); @@ -37,15 +27,15 @@ $(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 = '