mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Merge pull request #1345 from halfdan/944-crazy-notifications
Fix notification stacking.
This commit is contained in:
commit
9b2434be4c
2 changed files with 5 additions and 1 deletions
|
@ -193,7 +193,7 @@
|
|||
this.renderItem(item);
|
||||
},
|
||||
clearEverything: function () {
|
||||
this.$el.find('.js-notification.notification-passive').remove();
|
||||
this.$el.find('.js-notification.notification-passive').parent().remove();
|
||||
},
|
||||
removeItem: function (e) {
|
||||
e.preventDefault();
|
||||
|
@ -218,6 +218,7 @@
|
|||
$(this)
|
||||
.show()
|
||||
.css({height: "auto"})
|
||||
.parent()
|
||||
.remove();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
window.location.href = msg.redirect;
|
||||
},
|
||||
error: function (xhr) {
|
||||
Ghost.notifications.clearEverything();
|
||||
Ghost.notifications.addItem({
|
||||
type: 'error',
|
||||
message: Ghost.Views.Utils.getRequestErrorMessage(xhr),
|
||||
|
@ -102,6 +103,7 @@
|
|||
window.location.href = msg.redirect;
|
||||
},
|
||||
error: function (xhr) {
|
||||
Ghost.notifications.clearEverything();
|
||||
Ghost.notifications.addItem({
|
||||
type: 'error',
|
||||
message: Ghost.Views.Utils.getRequestErrorMessage(xhr),
|
||||
|
@ -153,6 +155,7 @@
|
|||
window.location.href = msg.redirect;
|
||||
},
|
||||
error: function (xhr) {
|
||||
Ghost.notifications.clearEverything();
|
||||
Ghost.notifications.addItem({
|
||||
type: 'error',
|
||||
message: Ghost.Views.Utils.getRequestErrorMessage(xhr),
|
||||
|
|
Loading…
Add table
Reference in a new issue