Merge pull request #10015 from edx/afeef/bugfix/tnl-3258-fix-confirm-navigation-popup-unmodified-group-configurations

TNL-3258 Reset group configuration model when a child content group i…
This commit is contained in:
Afeef Janjua
2015-10-07 11:13:46 +05:00
2 changed files with 7 additions and 2 deletions

View File

@@ -36,8 +36,11 @@ function(Backbone, _, str, gettext, GroupModel, GroupCollection) {
}],
initialize: function(attributes, options) {
this.on('remove:groups', this.groupRemoved);
this.canBeEmpty = options && options.canBeEmpty;
this.setOriginalAttributes();
return this;
},
@@ -120,6 +123,10 @@ function(Backbone, _, str, gettext, GroupModel, GroupCollection) {
};
}
}
},
groupRemoved: function () {
this.setOriginalAttributes();
}
});