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

Unified Diff: chrome/browser/resources/md_downloads/toolbar.js

Issue 2284463002: MD Downloads: fix search spinner when terms are the same (Closed)
Patch Set: tsergeant@ review / test fix Created 4 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
Index: chrome/browser/resources/md_downloads/toolbar.js
diff --git a/chrome/browser/resources/md_downloads/toolbar.js b/chrome/browser/resources/md_downloads/toolbar.js
index b830c6020475f349e221d5a0583b7898b29705ff..726f3a4e82a6893ca0d8f05f9729b6b1e801f684 100644
--- a/chrome/browser/resources/md_downloads/toolbar.js
+++ b/chrome/browser/resources/md_downloads/toolbar.js
@@ -87,8 +87,8 @@ cr.define('downloads', function() {
*/
onSearchChanged_: function(event) {
var actionService = downloads.ActionService.getInstance();
- actionService.search(/** @type {string} */ (event.detail));
- this.spinnerActive = actionService.isSearching();
+ if (actionService.search(/** @type {string} */ (event.detail)))
+ this.spinnerActive = actionService.isSearching();
this.updateClearAll_();
},
« no previous file with comments | « chrome/browser/resources/md_downloads/toolbar.html ('k') | chrome/browser/resources/md_downloads/vulcanized.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698