diff options
-rwxr-xr-x | css/style.css | 5 | ||||
-rw-r--r-- | js/documents.js | 8 | ||||
-rwxr-xr-x | templates/documents.php | 2 |
3 files changed, 12 insertions, 3 deletions
diff --git a/css/style.css b/css/style.css index 0be8fcd6..4eec772a 100755 --- a/css/style.css +++ b/css/style.css @@ -62,6 +62,11 @@ background: #e8e8e8 url('%webroot%/core/img/loading.gif') 50% 50% no-repeat; } +.documentslist .progress div{ + margin-top: 144px; + text-align: center; +} + .documentslist .document:hover, .documentslist .document a:focus { background-color: #ddd; diff --git a/js/documents.js b/js/documents.js index f14e58f3..612b0fea 100644 --- a/js/documents.js +++ b/js/documents.js @@ -88,7 +88,11 @@ var documentsMain = { $('title').text(documentsMain.UI.mainTitle); }); }, - showProgress : function(){ + showProgress : function(message){ + if (!message){ + message = ' '; + } + $('.documentslist .progress div').text(message); $('.documentslist .progress').show(); }, @@ -420,7 +424,7 @@ var documentsMain = { if (documentsMain.isGuest){ return; } - documentsMain.UI.showProgress(); + documentsMain.UI.showProgress(t('documents', 'Loading documents...')); jQuery.when(documentsMain.loadDocuments()) .then(function(){ documentsMain.renderDocuments(); diff --git a/templates/documents.php b/templates/documents.php index 0b461a74..21edb4e3 100755 --- a/templates/documents.php +++ b/templates/documents.php @@ -28,7 +28,7 @@ </form> </div> </li> - <li class="progress"> </li> + <li class="progress"><div><?php p($l->t('Loading documents...')); ?></div></li> <li class="document template" data-id="" style="display:none;"> <a target="_blank" href=""><label></label></a> </li> |