Commit 05ec0c11 by Don Mitchell

Oops, when i alphabetized i got the value incorrectly.

Fixed cancel to not retain new entries.
parent 592d7e53
......@@ -61,7 +61,7 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
var self = this;
_.each(_.sortBy(_.keys(this.model.attributes), _.identity),
function(key) {
listEle$.append(self.template({ key : key, value : self[key]}));
listEle$.append(self.template({ key : key, value : self.model.get(key)}));
self.fieldToSelectorMap[key] = key;
});
......@@ -122,6 +122,7 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
revertView : function(event) {
this.model.deleteKeys = [];
var self = this;
this.model.clear({silent : true});
this.model.fetch({
success : function() { self.render(); },
error : CMS.ServerError
......
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