studio - alerts: revisited advanced editor notification UI to marry new styles/behavior - WIP
This commit is contained in:
@@ -57,7 +57,7 @@ $(document).ready(function () {
|
||||
});
|
||||
|
||||
// alert and notifications - manual & action-based close
|
||||
$('.action-notification-close, .notification.has-actions .nav-actions a').click(function(e) {
|
||||
$('.action-notification-close').click(function(e) {
|
||||
(e).preventDefault();
|
||||
$(this).closest('.wrapper-notification').removeClass('is-shown').addClass('is-hiding');
|
||||
});
|
||||
|
||||
@@ -141,13 +141,13 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
|
||||
event.keyCode === 8 || event.keyCode === 46)) return;
|
||||
}
|
||||
this.$el.find(".message-status").removeClass("is-shown");
|
||||
$('.wrapper-notification').addClass('is-shown');
|
||||
$('.wrapper-notification').removeClass('is-hiding').addClass('is-shown');
|
||||
this.buttonsVisible = true;
|
||||
}
|
||||
},
|
||||
|
||||
hideSaveCancelButtons: function() {
|
||||
$('.wrapper-notification').removeClass('is-shown');
|
||||
$('.wrapper-notification').removeClass('is-shown').addClass('is-hiding');
|
||||
this.buttonsVisible = false;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user