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

Unified Diff: chrome/browser/resources/md_history/list_container.js

Issue 2186073003: [MD History] Close delete items dialog when a new query is initiated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@open_tabs_new_window
Patch Set: Created 4 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/md_history/list_container.js
diff --git a/chrome/browser/resources/md_history/list_container.js b/chrome/browser/resources/md_history/list_container.js
index 448c27cae3356014d508703b4af85849af34b910..4a89f4fb0c37ce77a2497798caaf04f709b84a36 100644
--- a/chrome/browser/resources/md_history/list_container.js
+++ b/chrome/browser/resources/md_history/list_container.js
@@ -65,10 +65,13 @@ Polymer({
return;
}
+ // Close any open dialog if a new query is initiated.
+ if (!incremental)
+ this.$.dialog.close();
+
this.set('queryState.querying', true);
this.set('queryState.incremental', incremental);
-
var lastVisitTime = 0;
if (incremental) {
var lastVisit = this.queryResult.results.slice(-1)[0];
@@ -113,7 +116,6 @@ Polymer({
/** @private */
loadMoreHistory_: function() { this.queryHistory(true); },
-
/**
* @param {HistoryQuery} info
* @param {!Array<HistoryEntry>} results

Powered by Google App Engine
This is Rietveld 408576698