Commit 4f71f538 by Brian Talbot

studio - alerts: adding back in manual close behavior to base.js (needed across app)

parent cea0f925
...@@ -48,6 +48,18 @@ $(document).ready(function () { ...@@ -48,6 +48,18 @@ $(document).ready(function () {
(e).preventDefault(); (e).preventDefault();
}); });
// alerts - manual close
$('.action-alert-close, .alert.has-actions .nav-actions a').click(function(e) {
(e).preventDefault();
$(this).closest('.wrapper-alert').removeClass('is-shown');
});
// notifications - manual & action-based close
$('.action-notification-close').click(function(e) {
(e).preventDefault();
$(this).closest('.wrapper-notification').removeClass('is-shown').addClass('is-hiding');
});
// nav - dropdown related // nav - dropdown related
$body.click(function (e) { $body.click(function (e) {
$('.nav-dropdown .nav-item .wrapper-nav-sub').removeClass('is-shown'); $('.nav-dropdown .nav-item .wrapper-nav-sub').removeClass('is-shown');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment