Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Unified Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 10837020: In case of search add "Searching..." string to the spinner in the center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/file_manager/js/file_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index abb682f50abeafac783de9de181b25217b6d9523..e5c9a49b28611da43bc5e6b33b401b174edc611c 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -609,7 +609,7 @@ FileManager.prototype = {
this.deleteButton_ = this.dialogDom_.querySelector('#delete-button');
this.table_ = this.dialogDom_.querySelector('.detail-table');
this.grid_ = this.dialogDom_.querySelector('.thumbnail-grid');
- this.spinner_ = this.dialogDom_.querySelector('.spinner');
+ this.spinner_ = this.dialogDom_.querySelector('#spinner-with-text');
this.showSpinner_(false);
this.butter_ = this.dialogDom_.querySelector('.butter-bar');
this.unmountedPanel_ = this.dialogDom_.querySelector('#unmounted-panel');
@@ -3317,7 +3317,13 @@ FileManager.prototype = {
FileManager.prototype.showSpinner_ = function(on) {
this.cancelSpinnerTimeout_();
- this.spinner_.style.display = on ? '' : 'none';
+ if (on) {
+ this.spinner_.textContent =
+ this.directoryModel_.isSearching() ? str('SEARCH_SPINNER') : '';
+ this.spinner_.style.display = '';
+ } else {
+ this.spinner_.style.display = 'none';
+ }
};
FileManager.prototype.onNewFolderCommand_ = function(event) {
« no previous file with comments | « chrome/browser/resources/file_manager/css/file_manager.css ('k') | chrome/browser/resources/file_manager/js/mock_chrome.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698