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.");
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();
if(this.saved){
this.saved.hide();
}
},
saveView:function(){
saveView:function(){
// TODO one last verification scan:
// TODO one last verification scan:
// call validateKey on each to ensure proper format
// call validateKey on each to ensure proper format
vartitle=gettext("Your policy changes have been saved.");
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.");
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.");
self.saved=newCMS.Views.Alert.Confirmation({
self.showSavedBar(title,message);
title:gettext("Your policy changes have been saved."),