diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-02 15:23:51 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-02 15:23:51 +0200 |
commit | eb1216f9493c78a0c1a3e49058ac1a96cd3a5a5c (patch) | |
tree | 254f2dad7125d4d35fbb9c2fb61a5d9c00b6d937 /apps/files_versions/js/versions.js | |
parent | 535ed8369f701a184340a428e82cc8d7cc7588bb (diff) | |
download | nextcloud-server-eb1216f9493c78a0c1a3e49058ac1a96cd3a5a5c.tar.gz nextcloud-server-eb1216f9493c78a0c1a3e49058ac1a96cd3a5a5c.zip |
add previews to versions dialog
Diffstat (limited to 'apps/files_versions/js/versions.js')
-rw-r--r-- | apps/files_versions/js/versions.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js index f57e931bad9..3f56a3eb698 100644 --- a/apps/files_versions/js/versions.js +++ b/apps/files_versions/js/versions.js @@ -129,6 +129,8 @@ function createVersionsDropdown(filename, files) { var path = OC.filePath('files_versions', '', 'download.php'); + var preview = '<img class="preview" src="'+revision.preview+'"/>'; + var download ='<a href="' + path + "?file=" + files + '&revision=' + revision.version + '">'; download+='<img'; download+=' src="' + OC.imagePath('core', 'actions/download') + '"'; @@ -146,7 +148,7 @@ function createVersionsDropdown(filename, files) { var version=$('<li/>'); version.attr('value', revision.version); - version.html(download + revert); + version.html(preview + download + revert); version.appendTo('#found_versions'); } |