varmessage=gettext("Your changes will not take effect until you save your progress. Take care with key and value formatting, as validation is not implemented.")
varconfirm=newCMS.Views.Notification.Warning({
title:gettext("You've Made Some Changes"),
message:message,
actions:{
primary:{
"text":gettext("Save Changes"),
"class":"action-save",
"click":function(){
self.saveView();
confirm.hide();
self.notificationBarShowing=false;
}
},
secondary:[{
"text":gettext("Cancel"),
"class":"action-cancel",
"click":function(){
self.revertView();
confirm.hide();
self.notificationBarShowing=false;
}
}],
}});
this.notificationBarShowing=true;
confirm.show();
},
saveView:function(event){
window.CmsUtils.smoothScrollTop(event);
saveView:function(){
// TODO one last verification scan:
// call validateKey on each to ensure proper format
// check for dupes
varself=event.data;
self.model.save({},
varself=this;
this.model.save({},
{
success:function(){
self.render();
self.showMessage(self.successful_changes);
varmessage=gettext("Please note that validation of your policy key and value pairs is not currently in place yet. If you are having difficulties, please review your policy pairs.");
varsaving=newCMS.Views.Alert.Confirmation({
title:gettext("Your policy changes have been saved."),
<h2class="title title-3"id="notification-changesMade-title">You've Made Some Changes</h2>
<pid="notification-changesMade-description">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>
<h2class="title title-3">Your policy changes have been saved.</h2>
<p>Please note that validation of your policy key and value pairs is not currently in place yet. If you are having difficulties, please review your policy pairs.</p>