From 50cb207f35fb42fa53ad9a57105bf385803d181b Mon Sep 17 00:00:00 2001 From: Thomas Taylor Date: Wed, 21 Oct 2015 14:02:47 +0100 Subject: [PATCH] Move warning case Fixes #899 --- frontend/src/core/notify/plugins/alert/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/core/notify/plugins/alert/index.js b/frontend/src/core/notify/plugins/alert/index.js index 7eb33ab790..86e67a7a25 100644 --- a/frontend/src/core/notify/plugins/alert/index.js +++ b/frontend/src/core/notify/plugins/alert/index.js @@ -19,16 +19,17 @@ define(function(require) { defaults.confirmButtonText = "Yes, I'm sure"; defaults.cancelButtonText = "No"; break; - case "input": - case "success": - case "info": - case "error": case "warning": defaults.showCancelButton = true; defaults.confirmButtonText = "Yes, I'm sure"; defaults.cancelButtonText = "No"; defaults.confirmButtonColor = "#DD6B55"; break; + case "input": + case "success": + case "info": + case "error": + break; default: if(data.type) { Origin. Notify.console({ @@ -64,7 +65,7 @@ define(function(require) { text: data }; } - + data.type = data.type || "confirm"; openPopup(data); };