Commit ec90d349 by Brian Talbot

studio - alerts: revisited advanced editor notification UI to marry new styles/behavior - WIP

parent eb165873
...@@ -57,7 +57,7 @@ $(document).ready(function () { ...@@ -57,7 +57,7 @@ $(document).ready(function () {
}); });
// alert and notifications - manual & action-based close // 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(); (e).preventDefault();
$(this).closest('.wrapper-notification').removeClass('is-shown').addClass('is-hiding'); $(this).closest('.wrapper-notification').removeClass('is-shown').addClass('is-hiding');
}); });
......
...@@ -141,13 +141,13 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({ ...@@ -141,13 +141,13 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
event.keyCode === 8 || event.keyCode === 46)) return; event.keyCode === 8 || event.keyCode === 46)) return;
} }
this.$el.find(".message-status").removeClass("is-shown"); this.$el.find(".message-status").removeClass("is-shown");
$('.wrapper-notification').addClass('is-shown'); $('.wrapper-notification').removeClass('is-hiding').addClass('is-shown');
this.buttonsVisible = true; this.buttonsVisible = true;
} }
}, },
hideSaveCancelButtons: function() { hideSaveCancelButtons: function() {
$('.wrapper-notification').removeClass('is-shown'); $('.wrapper-notification').removeClass('is-shown').addClass('is-hiding');
this.buttonsVisible = false; this.buttonsVisible = false;
}, },
......
...@@ -105,20 +105,25 @@ editor.render(); ...@@ -105,20 +105,25 @@ editor.render();
<!-- notification: change has been made and a save is needed --> <!-- notification: change has been made and a save is needed -->
<div class="wrapper wrapper-notification wrapper-notification-warning"> <div class="wrapper wrapper-notification wrapper-notification-warning">
<div class="notification warning"> <div class="notification warning has-actions">
<i class="ss-icon ss-symbolicons-block icon icon-warning">&#x26A0;</i>
<div class="copy"> <div class="copy">
<i class="ss-icon ss-symbolicons-block icon icon-warning">&#x26A0;</i> <h2 class="title title-3">You've Made Some Changes</h2>
<p>Your changes will not take effect until you <strong>save your progress</strong>. Take care with key and value formatting, as validation is <strong>not implemented</strong>.</p>
<p><strong>Note: </strong>Your changes will not take effect until you <strong>save your
progress</strong>. Take care with key and value formatting, as validation is <strong>not implemented</strong>.</p>
</div> </div>
<div class="actions"> <nav class="nav-actions">
<h3 class="sr">Notification Actions</h3>
<ul> <ul>
<li><a href="#" class="save-button">Save</a></li> <li class="nav-item">
<li><a href="#" class="cancel-button">Cancel</a></li> <a href="#" class="action-primary save-button">Save Changes</a>
</li>
<li class="nav-item">
<a href="#" class="action-secondary cancel-button">Cancel</a>
</li>
</ul> </ul>
</div> </nav>
</div> </div>
</div> </div>
</%block> </%block>
\ No newline at end of file
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