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

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: rebase 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
« no previous file with comments | « no previous file | chrome/test/data/webui/md_history/history_list_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93d430d098c6298aea140073b56f7115f9d31d2b..687a4fe7140c8c1a54723612178d2b851ec962d6 100644
--- a/chrome/browser/resources/md_history/list_container.js
+++ b/chrome/browser/resources/md_history/list_container.js
@@ -66,10 +66,13 @@ Polymer({
return;
}
+ // Close any open dialog if a new query is initiated.
+ if (!incremental && this.$.dialog.open)
+ 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];
@@ -114,7 +117,6 @@ Polymer({
/** @private */
loadMoreHistory_: function() { this.queryHistory(true); },
-
/**
* @param {HistoryQuery} info
* @param {!Array<HistoryEntry>} results
« no previous file with comments | « no previous file | chrome/test/data/webui/md_history/history_list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698