summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorluckydonald <luckydonald@flutterb.at>2014-08-11 02:37:01 +0200
committerluckydonald <luckydonald@flutterb.at>2014-08-11 02:37:01 +0200
commit7fc574cc537fe295cc6821765a5cf675b6c740fd (patch)
tree008c209b2bd192cd7bf4cfa8798beef34b8fd887 /apps/files
parent19efa259e9846555c06f08560ab01328c5422b99 (diff)
downloadnextcloud-server-7fc574cc537fe295cc6821765a5cf675b6c740fd.tar.gz
nextcloud-server-7fc574cc537fe295cc6821765a5cf675b6c740fd.zip
Updated and optimized Mobile Layout as well.
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/css/mobile.css10
-rw-r--r--apps/files/css/upload.css6
-rw-r--r--apps/files/js/file-upload.js5
-rw-r--r--apps/files/templates/list.php2
4 files changed, 19 insertions, 4 deletions
diff --git a/apps/files/css/mobile.css b/apps/files/css/mobile.css
index 780b7ac8443..3c77bba3a88 100644
--- a/apps/files/css/mobile.css
+++ b/apps/files/css/mobile.css
@@ -79,7 +79,15 @@ table td.filename .nametext .innernametext {
}
/* shorten elements for mobile */
-#uploadprogressbar {
+#uploadprogressbar, #uploadprogressbar .label.inner {
width: 50px;
}
+/* hide desktop-only parts */
+#uploadprogressbar .desktop {
+ display: none !important;
+}
+#uploadprogressbar .mobile {
+ display: block !important;
}
+
+} \ No newline at end of file
diff --git a/apps/files/css/upload.css b/apps/files/css/upload.css
index 71b8b580462..b6e158bf363 100644
--- a/apps/files/css/upload.css
+++ b/apps/files/css/upload.css
@@ -93,6 +93,12 @@
position: relative;
top: 7px;
}
+#uploadprogressbar .desktop {
+ display: block;
+}
+#uploadprogressbar .mobile {
+ display: none;
+}
#uploadprogressbar + stop {
font-size: 13px;
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 4dc7d0be30f..d3ee64bb50d 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -458,7 +458,7 @@ OC.Upload = {
$('#uploadprogresswrapper .speed').show();
$('#uploadprogresswrapper .label').show();
$('#uploadprogressbar').progressbar({value: 0});
- $('#uploadprogressbar .ui-progressbar-value').html('<em class="label inner">' + t('files', 'Uploading...') + '</em>');
+ $('#uploadprogressbar .ui-progressbar-value').html('<em class="label inner"><span class="desktop">' + t('files', 'Uploading...') + '</span><span class="mobile">' + t('files', '...') + '</span></em>');
OC.Upload._showProgressBar();
});
fileupload.on('fileuploadprogress', function(e, data) {
@@ -468,7 +468,8 @@ OC.Upload = {
fileupload.on('fileuploadprogressall', function(e, data) {
OC.Upload.log('progress handle fileuploadprogressall', e, data);
var progress = (data.loaded / data.total) * 100;
- $('#uploadprogressbar .label').text(t('files', '{loadedSize} of {totalSize}', {loadedSize: humanFileSize(data.loaded), totalSize: humanFileSize(data.total)}));
+ $('#uploadprogressbar .label .mobile').text(t('files', '{loadedSize}', {loadedSize: humanFileSize(data.loaded)}));
+ $('#uploadprogressbar .label .desktop').text(t('files', '{loadedSize} of {totalSize}', {loadedSize: humanFileSize(data.loaded), totalSize: humanFileSize(data.total)}));
$('#uploadprogresswrapper .speed').text(t('files', '{bitrate}/s', {bitrate: humanFileSize(data.bitrate)}));
$('#uploadprogressbar').progressbar('value', progress);
});
diff --git a/apps/files/templates/list.php b/apps/files/templates/list.php
index af616d71c19..a70dee1a8df 100644
--- a/apps/files/templates/list.php
+++ b/apps/files/templates/list.php
@@ -38,7 +38,7 @@
</div>
<div id="uploadprogresswrapper">
<div id="uploadprogressbar">
- <em class="label outer" style="display:none"><?php p($l->t('Uploading...'));?></em>
+ <em class="label outer" style="display:none"><span class="desktop"><?php p($l->t('Uploading...'));?></span><span class="mobile"><?php p($l->t('...'));?></span></em>
</div>
<div style="display:none" class="speed"></div>
<input type="button" class="stop icon-close" style="display:none" value="" />