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

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

Issue 9349015: [filebrowser] Save sorting field/order for modal dialogs, show spinner when scanning directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Spinner itself Created 8 years, 10 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/directory_model.js
===================================================================
--- chrome/browser/resources/file_manager/js/directory_model.js (revision 120559)
+++ chrome/browser/resources/file_manager/js/directory_model.js (working copy)
@@ -338,9 +338,15 @@
this.runningScan_.cancel();
this.pendingScan_ = null;
+ var onDone = function() {
+ cr.dispatchSimpleEvent(this, 'scan-completed');
+ callback();
+ }.bind(this);
+
// Clear the table first.
this.fileList_.splice(0, this.fileList_.length);
- this.runningScan_ = this.createScanner_(this.fileList_, callback);
+ cr.dispatchSimpleEvent(this, 'scan-started');
+ this.runningScan_ = this.createScanner_(this.fileList_, onDone);
this.runningScan_.run();
},
« no previous file with comments | « chrome/browser/resources/file_manager/images/spinner.svg ('k') | chrome/browser/resources/file_manager/js/file_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698