summaryrefslogtreecommitdiffstats
path: root/files/js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-28 00:21:11 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-28 00:21:11 +0200
commit25c48e6aed35084d3bd49e5b577a4ace9f640bc8 (patch)
tree9640a2ac81c452313b02e047ae2f980637b49145 /files/js
parent556bf2ef4ddf1aa47f1ebd90494f562076fdeac2 (diff)
downloadnextcloud-server-25c48e6aed35084d3bd49e5b577a4ace9f640bc8.tar.gz
nextcloud-server-25c48e6aed35084d3bd49e5b577a4ace9f640bc8.zip
lots of small style fixes for the file list
Diffstat (limited to 'files/js')
-rw-r--r--files/js/files.js32
1 files changed, 18 insertions, 14 deletions
diff --git a/files/js/files.js b/files/js/files.js
index e1ac4e172fc..23d4c0205f0 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -328,7 +328,9 @@ function procesSelection(){
var selectedFolders=selected.filter(function(el){return el.type=='dir'});
if(selectedFiles.length==0 && selectedFolders.length==0){
$('#headerName>span.name').text('Name');
- $('#headerSize').text('Size (MB)');
+ $('#headerSize').text('Size MB');
+ $('#headerDate').text('Modified');
+ $('th').css({background:'#fff',fontWeight:'normal'});
$('#selectedActions').hide();
}else{
$('#selectedActions').show();
@@ -347,26 +349,28 @@ function procesSelection(){
totalSize= '>1000';
}
}
- $('#headerSize').text(totalSize+' (MB)');
+ $('#headerSize').text(totalSize+' MB');
var selection='';
- if(selectedFiles.length>0){
- if(selectedFiles.length==1){
- selection+='1 File';
+ if(selectedFolders.length>0){
+ if(selectedFolders.length==1){
+ selection+='1 folder';
}else{
- selection+=selectedFiles.length+' Files';
+ selection+=selectedFolders.length+' folders';
}
- if(selectedFolders.length>0){
- selection+=' ,';
+ if(selectedFiles.length>0){
+ selection+=' & ';
}
}
- if(selectedFolders.length>0){
- if(selectedFolders.length==1){
- selection+='1 Folder';
+ if(selectedFiles.length>0){
+ if(selectedFiles.length==1){
+ selection+='1 file';
}else{
- selection+=selectedFolders.length+' Folders';
+ selection+=selectedFiles.length+' files';
}
}
- $('#headerName>span.name').text(selection+' Selected');
+ $('#headerName>span.name').text(selection);
+ $('#headerDate').text('');
+ $('th').css({background:'#ddd', fontWeight:'bold'});
}
}
@@ -396,4 +400,4 @@ function getSelectedFiles(property){
}
});
return files;
-} \ No newline at end of file
+}