summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/js
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-07-25 11:15:24 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-07-25 11:15:24 +0200
commite5b0c1e78b0e0b5cb4b49db4060e1a2fffdc172c (patch)
tree248a422cd04571d1fbca57839b23915fd7f8910a /apps/files_versions/js
parent16d8074d77292f812234fc3b93e851e39f3a6cb6 (diff)
downloadnextcloud-server-e5b0c1e78b0e0b5cb4b49db4060e1a2fffdc172c.tar.gz
nextcloud-server-e5b0c1e78b0e0b5cb4b49db4060e1a2fffdc172c.zip
remove unused code; use jquery
Diffstat (limited to 'apps/files_versions/js')
-rw-r--r--apps/files_versions/js/versions.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js
index ca479507d48..a14de7dbee2 100644
--- a/apps/files_versions/js/versions.js
+++ b/apps/files_versions/js/versions.js
@@ -104,9 +104,9 @@ function createVersionsDropdown(filename, files) {
success: function(result) {
var versions = result.data.versions;
if (result.data.endReached === true) {
- document.getElementById("show-more-versions").style.display="none";
+ $("#show-more-versions").css("display", "none");
} else {
- document.getElementById("show-more-versions").style.display="block";
+ $("#show-more-versions").css("display", "block");
}
if (versions) {
$.each(versions, function(index, row) {
@@ -132,8 +132,6 @@ function createVersionsDropdown(filename, files) {
download ='<a href="' + path + "?file=" + files + '&revision=' + revision.version + '">';
download+='<img';
download+=' src="' + OC.imagePath('core', 'actions/download') + '"';
- download+=' id="' + revision.version + '"';
- download+=' value="' + files + '"';
download+=' name="downloadVersion" />';
download+=name;
download+='</a>';
@@ -143,8 +141,6 @@ function createVersionsDropdown(filename, files) {
revert+=' value="' + files + '">';
revert+='<img';
revert+=' src="' + OC.imagePath('core', 'actions/history') + '"';
- revert+=' id="' + revision.version + '"';
- revert+=' value="' + files + '"';
revert+=' name="revertVersion"';
revert+='/>'+t('files_versions', 'Restore')+'</span>';