+
+ wlxmlDocument = sandbox.getModule('data').getDocument();
+ documentIsDirty = false;
+ wlxmlDocument.on('change', function() {
+ documentIsDirty = true;
+ });
+ wlxmlDocument.on('contentSet', function() {
+ documentIsDirty = true;
+ });
+ },
+ draftDropped: function() {
+ documentSummary.setDraftField('-');
+ sandbox.getModule('mainBar').setCommandEnabled('drop-draft', false);