Reset copied reference earlier in Wikidata schema

This commit is contained in:
Antonin Delpeuch 2019-03-01 09:59:08 +00:00
parent 21468a35a5
commit 9cb9f4639e

View File

@ -232,6 +232,7 @@ $(window).bind('beforeunload', beforeUnload);
SchemaAlignmentDialog._reset = function(schema) { SchemaAlignmentDialog._reset = function(schema) {
this._originalSchema = schema || { itemDocuments: [] }; this._originalSchema = schema || { itemDocuments: [] };
this._schema = cloneDeep(this._originalSchema); // this is what can be munched on this._schema = cloneDeep(this._originalSchema); // this is what can be munched on
this._copiedReference = null;
$('#schema-alignment-statements-container').empty(); $('#schema-alignment-statements-container').empty();
@ -244,8 +245,6 @@ SchemaAlignmentDialog._reset = function(schema) {
if (!this._schema.itemDocuments.length) { if (!this._schema.itemDocuments.length) {
// this._addItem(); // this._addItem();
} }
this._copiedReference = null;
}; };
SchemaAlignmentDialog._save = function(onDone) { SchemaAlignmentDialog._save = function(onDone) {