always load in a new instance of the edit module. It appeared as though on multiple edits (w/o refreshing page) without creating a new data model, we were always referencing stale content from the previous edit
This commit is contained in:
@@ -15,10 +15,9 @@ class CMS.Views.ModuleEdit extends Backbone.View
|
||||
$component_editor: => @$el.find('.component-editor')
|
||||
|
||||
loadDisplay: ->
|
||||
XModule.loadModule(@$el.find('.xmodule_display'))
|
||||
XModule.loadModule(@$el.find('.xmodule_display'))
|
||||
|
||||
loadEdit: ->
|
||||
if !@module
|
||||
@module = XModule.loadModule(@$el.find('.xmodule_edit'))
|
||||
|
||||
metadata: ->
|
||||
|
||||
Reference in New Issue
Block a user