diff options
author | Robin <robin@Amaya.(none)> | 2010-05-14 23:32:35 +0200 |
---|---|---|
committer | Robin <robin@Amaya.(none)> | 2010-05-14 23:32:35 +0200 |
commit | 8058b242275aed0decac7ce3eaadbe11e24e4a8d (patch) | |
tree | 957816c534ba9f0ca530a79d5abeaa7104bb5e86 /js | |
parent | 645de2ff787d035f4c8a7423961f37c7f0c325f4 (diff) | |
download | nextcloud-server-8058b242275aed0decac7ce3eaadbe11e24e4a8d.tar.gz nextcloud-server-8058b242275aed0decac7ce3eaadbe11e24e4a8d.zip |
provide layout for smaller screens on android/iphone
Diffstat (limited to 'js')
-rwxr-xr-x | js/filebrowser.js | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/js/filebrowser.js b/js/filebrowser.js index 3ec8994c029..9900ce69902 100755 --- a/js/filebrowser.js +++ b/js/filebrowser.js @@ -178,10 +178,14 @@ OC_FILES.browser.files.add=function(name,type,size,date,mime){ a.setAttribute('href','#'+OC_FILES.dir+dirname); }else{ a.setAttribute('href','#'+OC_FILES.dir); - sizeTd=document.createElement('td'); - tr.appendChild(sizeTd); - sizeTd.className='sizetext'; - sizeTd.appendChild(document.createTextNode(sizeFormat(size))); + if(!SMALLSCREEN){ + sizeTd=document.createElement('td'); + tr.appendChild(sizeTd); + sizeTd.className='sizetext'; + sizeTd.appendChild(document.createTextNode(sizeFormat(size))); + }else{ + td.setAttribute('colspan',2); + } } a=document.createElement('a'); var img=document.createElement('img'); @@ -191,10 +195,12 @@ OC_FILES.browser.files.add=function(name,type,size,date,mime){ img.title='actions'; img.src=WEBROOT+'/img/arrow_down.png'; img.addEvent('onclick',OC_FILES.browser.showactions,name); - td=document.createElement('td'); - tr.appendChild(td); - td.className='sizetext'; - td.appendChild(document.createTextNode(date)); + if(!SMALLSCREEN){ + td=document.createElement('td'); + tr.appendChild(td); + td.className='sizetext'; + td.appendChild(document.createTextNode(date)); + } } } |