Merge "Revert "Revert "Add wbEntitySelector widget to edit qid in VE"""

This commit is contained in:
jenkins-bot 2022-07-25 07:21:02 +00:00 committed by Gerrit Code Review
commit cda7562b0e
3 changed files with 5 additions and 3 deletions

View file

@ -205,7 +205,8 @@
"ve-math/ve.ui.MWMathInspector.js", "ve-math/ve.ui.MWMathInspector.js",
"ve-math/ve.ui.MWMathContextItem.js", "ve-math/ve.ui.MWMathContextItem.js",
"ve-math/ve.ui.MWMathDialog.js", "ve-math/ve.ui.MWMathDialog.js",
"ve-math/ve.ui.MWMathDialogTool.js" "ve-math/ve.ui.MWMathDialogTool.js",
"mw.widgets.MathWbEntitySelector.js"
], ],
"styles": [ "styles": [
"ve-math/ve.ui.MWLatexDialog.css", "ve-math/ve.ui.MWLatexDialog.css",
@ -217,6 +218,7 @@
"dependencies": [ "dependencies": [
"ext.visualEditor.mwcore", "ext.visualEditor.mwcore",
"ext.math.styles", "ext.math.styles",
"mw.config.values.wbRepo",
"oojs-ui.styles.icons-editing-advanced" "oojs-ui.styles.icons-editing-advanced"
], ],
"messages": [ "messages": [

View file

@ -113,7 +113,7 @@ ve.ui.MWLatexDialog.prototype.initialize = function () {
} ); } );
this.idInput = new OO.ui.TextInputWidget(); this.idInput = new OO.ui.TextInputWidget();
this.qidInput = new OO.ui.TextInputWidget(); this.qidInput = new mw.widgets.MathWbEntitySelector();
var inputField = new OO.ui.FieldLayout( this.input, { var inputField = new OO.ui.FieldLayout( this.input, {
align: 'top', align: 'top',

View file

@ -59,7 +59,7 @@ ve.ui.MWLatexInspector.prototype.initialize = function () {
} ); } );
this.idInput = new OO.ui.TextInputWidget(); this.idInput = new OO.ui.TextInputWidget();
this.qidInput = new OO.ui.TextInputWidget(); this.qidInput = new mw.widgets.MathWbEntitySelector();
var inputField = new OO.ui.FieldLayout( this.input, { var inputField = new OO.ui.FieldLayout( this.input, {
align: 'top', align: 'top',