Re-render XBlockOutlineView on highlights change
This commit is contained in:
@@ -635,6 +635,7 @@ define(['jquery', 'edx-ui-toolkit/js/utils/spec-helpers/ajax-helpers', 'common/j
|
||||
saveHighlights();
|
||||
|
||||
expectServerHandshakeWithHighlights(updatedHighlights);
|
||||
expectHighlightLinkNumberToBe(updatedHighlights.length);
|
||||
|
||||
openHighlights();
|
||||
expectHighlightsToBe(updatedHighlights);
|
||||
|
||||
@@ -224,7 +224,11 @@ define(['jquery', 'underscore', 'gettext', 'js/views/baseview', 'common/js/compo
|
||||
},
|
||||
|
||||
onSync: function(event) {
|
||||
if (ViewUtils.hasChangedAttributes(this.model, ['visibility_state', 'child_info', 'display_name'])) {
|
||||
var hasChangedAttributes = ViewUtils.hasChangedAttributes(
|
||||
this.model,
|
||||
['visibility_state', 'child_info', 'display_name', 'highlights']
|
||||
);
|
||||
if (hasChangedAttributes) {
|
||||
this.onXBlockChange();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user