mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 14:36:51 +00:00
Hide group selector when editing a subref
Since changing the group will break a subref, we'll hide the field for now. TODO: There's more that can be done here: the main ref group selector could also be hidden, and changing group could be supported if we change the group on all linked refs. Bug: T375156 Change-Id: I220850edae58097e09616a4b100878513767deae
This commit is contained in:
parent
c5539052b9
commit
9d665a8521
|
@ -240,6 +240,8 @@ ve.ui.MWReferenceEditPanel.prototype.getReferenceFromEditing = function () {
|
|||
ve.ui.MWReferenceEditPanel.prototype.setFormFieldsFromRef = function ( ref ) {
|
||||
this.referenceTarget.setDocument( ref.getDocument() );
|
||||
|
||||
this.optionsFieldset.toggle( !ref.extendsRef );
|
||||
|
||||
this.originalGroup = ref.getGroup();
|
||||
|
||||
// Set the group input while it's disabled, so this doesn't pop up the group-picker menu
|
||||
|
|
Loading…
Reference in a new issue