Browse Source

Fix error message classes

tags/v1.4.1
Isaac Bythewood 8 years ago
parent
commit
5cda896eed
3 changed files with 5 additions and 5 deletions
  1. +2
    -2
      pinry/static/js/lightbox.js
  2. +2
    -2
      pinry/static/js/pin-form.js
  3. +1
    -1
      pinry/static/js/pinry.js

+ 2
- 2
pinry/static/js/lightbox.js View File

@@ -83,7 +83,7 @@ $(window).load(function() {
createBox(pin); createBox(pin);
}); });
promise.error(function() { 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() { return links.each(function() {
@@ -95,7 +95,7 @@ $(window).load(function() {
createBox(pin); createBox(pin);
}); });
promise.error(function() { promise.error(function() {
message('Problem problem fetching pin data.', 'alert alert-error');
message('Problem problem fetching pin data.', 'alert alert-danger');
}); });
}); });
}); });


+ 2
- 2
pinry/static/js/pin-form.js View File

@@ -124,7 +124,7 @@ $(window).load(function() {
editedPin = null; editedPin = null;
}); });
promise.error(function() { promise.error(function() {
message('Problem updating image.', 'alert alert-error');
message('Problem updating image.', 'alert alert-danger');
}); });
} else { } else {
var data = { var data = {
@@ -144,7 +144,7 @@ $(window).load(function() {
dismissModal(modal); dismissModal(modal);
}); });
promise.error(function() { promise.error(function() {
message('Problem saving image.', 'alert alert-error');
message('Problem saving image.', 'alert alert-danger');
}); });
} }
}); });


+ 1
- 1
pinry/static/js/pinry.js View File

@@ -70,7 +70,7 @@ $(window).load(function() {
tileLayout(); tileLayout();
}); });
promise.error(function() { promise.error(function() {
message('Problem deleting image.', 'alert alert-error');
message('Problem deleting image.', 'alert alert-danger');
}); });
}); });
}); });


Loading…
Cancel
Save