Mooeypoo has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/201042

Change subject: Open the proper window when adding citation from the general 
dialog
......................................................................

Open the proper window when adding citation from the general dialog

When a citation is selected from the general citation dialog that
opens from the citoid inspector, make sure it opens the correct
citation window, namely the relevant cite-XXX window rather than
the transclusion window.

Bug: T94602
Change-Id: Idc8dd653e42011bd02c4bcec4aa9a02c9e2b7567
---
M modules/ve-mw/ui/dialogs/ve.ui.MWGeneralReferenceDialog.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/42/201042/1

diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWGeneralReferenceDialog.js 
b/modules/ve-mw/ui/dialogs/ve.ui.MWGeneralReferenceDialog.js
index 6ba6507..d4914fa 100644
--- a/modules/ve-mw/ui/dialogs/ve.ui.MWGeneralReferenceDialog.js
+++ b/modules/ve-mw/ui/dialogs/ve.ui.MWGeneralReferenceDialog.js
@@ -81,7 +81,7 @@
                                icon: item.icon,
                                label: item.title,
                                data: {
-                                       windowName: 'transclusion',
+                                       windowName: 'cite-' + item.name,
                                        dialogData: { template: item.template }
                                }
                        } ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/201042
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc8dd653e42011bd02c4bcec4aa9a02c9e2b7567
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Mooeypoo <mor...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to