summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-07-31 21:21:02 +0200
committerkondou <kondou@ts.unde.re>2013-07-31 21:21:02 +0200
commitaaf0fec9f54bc6f9eef5df00441d593e053ee74b (patch)
treeca65f4c20b8d1e698d815a3b5970926023093478 /apps/files_versions
parent50101a85a63f29c47abe325aecb3af26bc8a96d1 (diff)
downloadnextcloud-server-aaf0fec9f54bc6f9eef5df00441d593e053ee74b.tar.gz
nextcloud-server-aaf0fec9f54bc6f9eef5df00441d593e053ee74b.zip
Fix some JSLint warnings
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/js/versions.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js
index ca479507d48..9c3c74721f0 100644
--- a/apps/files_versions/js/versions.js
+++ b/apps/files_versions/js/versions.js
@@ -124,12 +124,12 @@ function createVersionsDropdown(filename, files) {
}
function addVersion( revision ) {
- title = formatDate(revision.version*1000);
- name ='<span class="versionDate" title="' + title + '">' + revision.humanReadableTimestamp + '</span>';
+ var title = formatDate(revision.version*1000);
+ var name ='<span class="versionDate" title="' + title + '">' + revision.humanReadableTimestamp + '</span>';
- path = OC.filePath('files_versions', '', 'download.php');
+ var path = OC.filePath('files_versions', '', 'download.php');
- download ='<a href="' + path + "?file=" + files + '&revision=' + revision.version + '">';
+ var download ='<a href="' + path + "?file=" + files + '&revision=' + revision.version + '">';
download+='<img';
download+=' src="' + OC.imagePath('core', 'actions/download') + '"';
download+=' id="' + revision.version + '"';
@@ -138,7 +138,7 @@ function createVersionsDropdown(filename, files) {
download+=name;
download+='</a>';
- revert='<span class="revertVersion"';
+ var revert='<span class="revertVersion"';
revert+=' id="' + revision.version + '"';
revert+=' value="' + files + '">';
revert+='<img';