Reset copied reference earlier in Wikidata schema
This commit is contained in:
parent
21468a35a5
commit
9cb9f4639e
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user