mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
Merge pull request #180 from matthojo/Notification-Dismissal
Notifications can now be dismissed via click / tap
This commit is contained in:
commit
5cb2f60cc5
@ -28,6 +28,11 @@
|
||||
|
||||
});
|
||||
|
||||
// Allow notifications to be dismissed
|
||||
$(document).on('click', '.js-notification .close', function () {
|
||||
$(this).parent().fadeOut(200, function () { $(this).remove(); });
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
// ## Set interactions for all menus
|
||||
|
@ -861,7 +861,7 @@ nav {
|
||||
};
|
||||
display: inline-block;
|
||||
color: rgba(255,255,255,0.6);
|
||||
|
||||
cursor: pointer;
|
||||
&:hover { color: #fff; }
|
||||
|
||||
}
|
||||
|
@ -1,24 +1,24 @@
|
||||
{{#if messages}}
|
||||
{{#each messages.error}}
|
||||
<section class="notification-error">
|
||||
<section class="notification-error js-notification">
|
||||
{{.}}
|
||||
<a class="close" href="#"><span class="hidden">Close</span></a>
|
||||
</section>
|
||||
{{/each}}
|
||||
{{#each messages.success}}
|
||||
<section class="notification-success">
|
||||
<section class="notification-success js-notification">
|
||||
{{.}}
|
||||
<a class="close" href="#"><span class="hidden">Close</span></a>
|
||||
</section>
|
||||
{{/each}}
|
||||
{{#each messages.warn}}
|
||||
<section class="notification-alert">
|
||||
<section class="notification-alert js-notification">
|
||||
{{.}}
|
||||
<a class="close" href="#"><span class="hidden">Close</span></a>
|
||||
</section>
|
||||
{{/each}}
|
||||
{{#each messages.info}}
|
||||
<section class="notification">
|
||||
<section class="notification js-notification">
|
||||
{{.}}
|
||||
<a class="close" href="#"><span class="hidden">Close</span></a>
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user