diff --git a/extensions/wikidata/module/scripts/dialogs/schema-alignment-dialog.js b/extensions/wikidata/module/scripts/dialogs/schema-alignment-dialog.js index 5fe0700cc..fa37947da 100644 --- a/extensions/wikidata/module/scripts/dialogs/schema-alignment-dialog.js +++ b/extensions/wikidata/module/scripts/dialogs/schema-alignment-dialog.js @@ -208,17 +208,17 @@ SchemaAlignmentDialog._addItem = function(json) { SchemaAlignmentDialog._initField(inputContainer, "wikibase-item", subject); var right = $('
').addClass('wbs-right').appendTo(item); $('
').addClass('wbs-namedesc-container').appendTo(right); - var toolbar = $('
').addClass('wbs-toolbar').appendTo(right); + var termToolbar = $('
').addClass('wbs-toolbar').appendTo(right); $('').addClass('wbs-add-namedesc').html('+ '+ $.i18n._('wikidata-schema')["add-term"]) .click(function() { SchemaAlignmentDialog._addNameDesc(item, null); - }).appendTo(toolbar); + }).appendTo(termToolbar); $('
').addClass('wbs-statement-group-container').appendTo(right); - var toolbar = $('
').addClass('wbs-toolbar').appendTo(right); + var statementToolbar = $('
').addClass('wbs-toolbar').appendTo(right); $('').addClass('wbs-add-statement-group').html('+ '+$.i18n._('wikidata-schema')["add-statement"]).click(function() { SchemaAlignmentDialog._addStatementGroup(item, null); - }).appendTo(toolbar); + }).appendTo(statementToolbar); if (statementGroups) { for(var i = 0; i != statementGroups.length; i++) {