studio - alerts: loosely wired advanced settings with new notification and alert messages

This commit is contained in:
Brian Talbot
2013-03-06 15:36:38 -05:00
parent 9a7b6c7eaf
commit 62514d85a3
3 changed files with 37 additions and 4 deletions

View File

@@ -114,13 +114,13 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
},
showMessage: function (type) {
this.$el.find(".message-status").removeClass("is-shown");
$(".wrapper-alert").removeClass("is-shown");
if (type) {
if (type === this.error_saving) {
this.$el.find(".message-status.error").addClass("is-shown");
$(".wrapper-alert-error").addClass("is-shown");
}
else if (type === this.successful_changes) {
this.$el.find(".message-status.confirm").addClass("is-shown");
$(".wrapper-alert-confirmation").addClass("is-shown");
this.hideSaveCancelButtons();
}
}

View File

@@ -234,7 +234,7 @@
bottom: 0;
z-index: 1000;
width: 100%;
border-top: 4px solid $black;
border-width: 2px;
padding: $baseline ($baseline*2);
&.wrapper-notification-warning {