From 5cda896eed0bcb443413cb513aed1c5aae33fc16 Mon Sep 17 00:00:00 2001 From: Isaac Bythewood Date: Thu, 4 Feb 2016 19:29:48 +0000 Subject: [PATCH] Fix error message classes --- pinry/static/js/lightbox.js | 4 ++-- pinry/static/js/pin-form.js | 4 ++-- pinry/static/js/pinry.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pinry/static/js/lightbox.js b/pinry/static/js/lightbox.js index b588576..793aaa5 100644 --- a/pinry/static/js/lightbox.js +++ b/pinry/static/js/lightbox.js @@ -83,7 +83,7 @@ $(window).load(function() { createBox(pin); }); promise.error(function() { - message('Problem problem fetching pin data.', 'alert alert-error'); + message('Problem problem fetching pin data.', 'alert alert-danger'); }); } return links.each(function() { @@ -95,7 +95,7 @@ $(window).load(function() { createBox(pin); }); promise.error(function() { - message('Problem problem fetching pin data.', 'alert alert-error'); + message('Problem problem fetching pin data.', 'alert alert-danger'); }); }); }); diff --git a/pinry/static/js/pin-form.js b/pinry/static/js/pin-form.js index 7147346..5842c52 100644 --- a/pinry/static/js/pin-form.js +++ b/pinry/static/js/pin-form.js @@ -124,7 +124,7 @@ $(window).load(function() { editedPin = null; }); promise.error(function() { - message('Problem updating image.', 'alert alert-error'); + message('Problem updating image.', 'alert alert-danger'); }); } else { var data = { @@ -144,7 +144,7 @@ $(window).load(function() { dismissModal(modal); }); promise.error(function() { - message('Problem saving image.', 'alert alert-error'); + message('Problem saving image.', 'alert alert-danger'); }); } }); diff --git a/pinry/static/js/pinry.js b/pinry/static/js/pinry.js index b9f93de..230a1e7 100644 --- a/pinry/static/js/pinry.js +++ b/pinry/static/js/pinry.js @@ -70,7 +70,7 @@ $(window).load(function() { tileLayout(); }); promise.error(function() { - message('Problem deleting image.', 'alert alert-error'); + message('Problem deleting image.', 'alert alert-danger'); }); }); });