[Pkg-owncloud-commits] [owncloud] 02/67: Update the modified date in UI on file reversion

David Prévot taffit at moszumanska.debian.org
Fri Jun 27 23:58:11 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 7576dde0a3d5a95e66c930111e11a35134a4d81d
Author: geez0x1 <geez0x1 at users.noreply.github.com>
Date:   Tue Jun 17 22:22:03 2014 +0200

    Update the modified date in UI on file reversion
---
 apps/files_versions/js/versions.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js
index 942a1a9..64e0df7 100644
--- a/apps/files_versions/js/versions.js
+++ b/apps/files_versions/js/versions.js
@@ -70,9 +70,9 @@ function revertFile(file, revision) {
 				OC.Notification.show( t('files_version', 'Failed to revert {file} to revision {timestamp}.', {file:file, timestamp:formatDate(revision * 1000)}) );
 			} else {
 				$('#dropdown').hide('blind', function() {
+					$('#dropdown').closest('tr').find('.modified:first').html(relative_modified_date(revision));
 					$('#dropdown').remove();
 					$('tr').removeClass('mouseOver');
-					// TODO also update the modified time in the web ui
 				});
 			}
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list