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

Unified Diff: res/js/common.js

Issue 2309423004: Give error-toast a duration argument (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Address comments Created 4 years, 3 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 | « res/imp/error-toast-sk.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: res/js/common.js
diff --git a/res/js/common.js b/res/js/common.js
index fce0ff2bec2d7246f265eafe9648585b4075647b..73aa8d4740bb665c04e1a0569f1de7bc16a694e7 100644
--- a/res/js/common.js
+++ b/res/js/common.js
@@ -71,10 +71,11 @@ this.sk = this.sk || function() {
* and displays the error messages.
*
*/
- sk.errorMessage = function(message) {
+ sk.errorMessage = function(message, duration) {
var detail = {
message: message,
}
+ detail.duration = duration;
document.dispatchEvent(new CustomEvent('error-sk', {detail: detail, bubbles: true}));
}
« no previous file with comments | « res/imp/error-toast-sk.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698