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

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

Issue 10829256: When searching show spinner inplace of magnifying glass in the searchbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « chrome/browser/resources/file_manager/css/file_manager.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 272424f775497e25e98f39fd999437b07fbf6b9f..9e1e42ca341cb67d402581930e969cf058e4d951 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -3238,11 +3238,15 @@ FileManager.prototype = {
FileManager.prototype.showSpinner_ = function(on) {
this.cancelSpinnerTimeout_();
if (on) {
- this.spinner_.textContent =
- this.directoryModel_.isSearching() ? str('SEARCH_SPINNER') : '';
- this.spinner_.style.display = '';
+ if (this.directoryModel_.isSearching()) {
+ this.dialogContainer_.classList.add('searching');
+ } else {
+ this.spinner_.style.display = '';
+ }
} else {
this.spinner_.style.display = 'none';
+ if (this.dialogContainer_)
+ this.dialogContainer_.classList.remove('searching');
}
};
« no previous file with comments | « chrome/browser/resources/file_manager/css/file_manager.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698