From 1ef4e2db9fcea4766edd5748556cf5df2d63f9e2 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 26 Feb 2013 04:22:11 +0100 Subject: [PATCH] Dismiss the QR abort notification after 5 seconds. #932 --- 4chan_x.user.js | 2 +- src/qr.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index b75aa2167..e816839b3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -6703,7 +6703,7 @@ if (QR.ajax) { QR.ajax.abort(); delete QR.ajax; - QR.error('QR upload aborted.'); + QR.notifications.push(new Notification('info', 'QR upload aborted.', 5)); } return QR.status(); } diff --git a/src/qr.coffee b/src/qr.coffee index 68424a680..c1560f2ad 100644 --- a/src/qr.coffee +++ b/src/qr.coffee @@ -919,5 +919,5 @@ QR = if QR.ajax QR.ajax.abort() delete QR.ajax - QR.error 'QR upload aborted.' + QR.notifications.push new Notification 'info', 'QR upload aborted.', 5 QR.status()