summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-04 21:27:04 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-04 21:27:37 +0200
commitf188f6cc2fed10bdc78a34df95b898a770bcf506 (patch)
tree421f3bc1c68aef6a8a60ba2287a1a8c1fb1f7762 /apps
parent41f135daeeff8ddb6914be786ebf4b90272b15b6 (diff)
downloadnextcloud-server-f188f6cc2fed10bdc78a34df95b898a770bcf506.tar.gz
nextcloud-server-f188f6cc2fed10bdc78a34df95b898a770bcf506.zip
Fix some jslint warnings
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/fileactions.js10
-rw-r--r--apps/files/js/filelist.js4
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index ea3522cb101..f4e7b7723f6 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -1,4 +1,4 @@
-FileActions={
+var FileActions={
actions:{},
defaults:{},
icons:{},
@@ -20,20 +20,20 @@ FileActions={
get:function(mime,type,permissions){
var actions={};
if(FileActions.actions.all){
- actions=$.extend( actions, FileActions.actions.all )
+ actions=$.extend( actions, FileActions.actions.all );
}
if(mime){
if(FileActions.actions[mime]){
- actions=$.extend( actions, FileActions.actions[mime] )
+ actions=$.extend( actions, FileActions.actions[mime] );
}
var mimePart=mime.substr(0,mime.indexOf('/'));
if(FileActions.actions[mimePart]){
- actions=$.extend( actions, FileActions.actions[mimePart] )
+ actions=$.extend( actions, FileActions.actions[mimePart] );
}
}
if(type){//type is 'dir' or 'file'
if(FileActions.actions[type]){
- actions=$.extend( actions, FileActions.actions[type] )
+ actions=$.extend( actions, FileActions.actions[type] );
}
}
var filteredActions = {};
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index e0cf516411a..85e5cfb14c2 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1,4 +1,4 @@
-FileList={
+var FileList={
useUndo:true,
update:function(fileListHtml) {
$('#fileList').empty().html(fileListHtml);
@@ -14,7 +14,7 @@ FileList={
var extension=false;
}
html+='<td class="filename" style="background-image:url('+img+')"><input type="checkbox" />';
- html+='<a class="name" href="download.php?file='+$('#dir').val().replace(/</, '&lt;').replace(/>/, '&gt;')+'/'+name+'"><span class="nametext">'+basename
+ html+='<a class="name" href="download.php?file='+$('#dir').val().replace(/</, '&lt;').replace(/>/, '&gt;')+'/'+name+'"><span class="nametext">'+basename;
if(extension){
html+='<span class="extension">'+extension+'</span>';
}