var PerformEditsDialog = {}; PerformEditsDialog.launch = function(logged_in_username) { var self = this; var elmts = this._elmts; var frame = this.frame; console.log(this.missingSchema); if (this.missingSchema) { return; } this._level = DialogSystem.showDialog(frame); var dismiss = function() { DialogSystem.dismissUntil(self._level - 1); }; elmts.loggedInUsername.text(logged_in_username); frame.find('.cancel-button').click(function() { dismiss(); }); elmts.performEditsButton.click(function() { Refine.postProcess( "wikidata", "perform-wikibase-edits", {}, { strategy : "SNAK_QUALIFIERS", action: "MERGE", summary: elmts.editSummary.val(), }, { includeEngine: true, cellsChanged: true, columnStatsChanged: true }, { onDone: function() { dismiss(); } }); }); }; PerformEditsDialog._updateWarnings = function(data) { var warnings = data.warnings; var mainDiv = this._elmts.warningsArea; // clear everything mainDiv.empty(); var table = $('