Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-44507 filemanager: indicator for clicking Download All in fileman…

…ager
  • Loading branch information...
commit 0a4fe80bff1f9d8adfeb24ccda7afc522bdb743c 1 parent 9b8555f
Matt Switlik authored
View
1  files/renderer.php
@@ -210,6 +210,7 @@ private function fm_print_generallayout($fm) {
<div class="fp-btn-download">
<a role="button" title="'.$strdownload.'" href="#"><img src="'.$this->pix_url('a/download_all').'" alt="" /></a>
</div>
+ <img class="fp-img-downloading" src="'.$this->pix_url('i/loading_small').'" alt="" />
</div>
<div class="fp-viewbar">
<a title="'. get_string('displayicons', 'repository') .'" class="fp-vb-icons" href="#">
View
10 lib/form/filemanager.js
@@ -366,11 +366,21 @@ M.form_filemanager.init = function(Y, options) {
return;
}
var scope = this;
+
+ var image_downloading = this.filemanager.one('.fp-img-downloading');
+ if (image_downloading.getStyle('display')=='inline'){
+ return;
+ }
+ image_downloading.setStyle('display', 'inline');
+
// perform downloaddir ajax request
this.request({
action: 'downloaddir',
scope: scope,
callback: function(id, obj, args) {
+ var image_downloading = scope.filemanager.one('.fp-img-downloading');
+ image_downloading.setStyle('display', 'none');
+
if (obj) {
scope.refresh(obj.filepath);
node = Y.Node.create('<iframe></iframe>').setStyles({
View
1  theme/base/style/filemanager.css
@@ -278,6 +278,7 @@ a.ygtvspacer:hover {color:transparent;text-decoration:none;}
.fitem.disabled .filemanager .fp-pathbar,
.fitem.disabled .filemanager .fp-restrictions,
.fitem.disabled .filemanager .fm-content-wrapper {display:none;}
+.filemanager .fp-img-downloading {display:none;padding-top: 3px;}
/*
* File Manager layout
View
4 theme/bootstrapbase/less/moodle/filemanager.less
@@ -766,6 +766,10 @@ a.ygtvspacer:hover {
.filemanager.fm-noitems .filemanager-container .fp-content {
display: none;
}
+.filemanager .fp-img-downloading {
+ display: none;
+ padding-top: 7px;
+}
.filemanager .filemanager-updating {
display: none;
text-align: center;
View
2  theme/bootstrapbase/style/moodle.css
1 addition, 1 deletion not shown
Please sign in to comment.
Something went wrong with that request. Please try again.