aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2012-12-20 10:53:50 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2012-12-20 10:53:50 +0100
commit5107ccbedaaaec0d00bfd7b650589ee4a0565895 (patch)
tree58b11f91ac017b6e8c639a60876fc1655922dde8 /apps/files/js
parente0ada2c24f3db0e93239f45bcbb7a8bb6d831018 (diff)
downloadnextcloud-server-5107ccbedaaaec0d00bfd7b650589ee4a0565895.tar.gz
nextcloud-server-5107ccbedaaaec0d00bfd7b650589ee4a0565895.zip
move CSS from JS to CSS
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/files.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index feffa10c9f6..5083a0dca73 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -770,21 +770,14 @@ function procesSelection(){
var selected=getSelectedFiles();
var selectedFiles=selected.filter(function(el){return el.type=='file'});
var selectedFolders=selected.filter(function(el){return el.type=='dir'});
- if(selectedFiles.length==0 && selectedFolders.length==0){
+ if(selectedFiles.length==0 && selectedFolders.length==0) {
$('#headerName>span.name').text(t('files','Name'));
$('#headerSize').text(t('files','Size'));
$('#modified').text(t('files','Modified'));
$('table').removeClass('multiselect');
$('.selectedActions').hide();
- $('#headerName').css('width','auto');
- $('#headerSize').css('width','auto');
- $('#headerDate').css('width','auto');
- $('table').css('padding-top','0');
- }else{
- var width={name:$('#headerName').css('width'),size:$('#headerSize').css('width'),date:$('#headerDate').css('width')};
- $('#headerName').css('width',width.name);
- $('#headerSize').css('width',width.size);
- $('#headerDate').css('width',width.date);
+ }
+ else {
$('.selectedActions').show();
var totalSize=0;
for(var i=0;i<selectedFiles.length;i++){