mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-13 17:53:09 +00:00
Merge "Follow-up I1e0ae39: Set isResponsive on new ref lists"
This commit is contained in:
commit
e2ebd2352c
|
@ -34,8 +34,7 @@ OO.inheritClass( ve.ui.MWReferencesListCommand, ve.ui.Command );
|
|||
* @inheritdoc
|
||||
*/
|
||||
ve.ui.MWReferencesListCommand.prototype.execute = function ( surface ) {
|
||||
var
|
||||
fragment = surface.getModel().getFragment(),
|
||||
var fragment = surface.getModel().getFragment(),
|
||||
selectedNode = fragment.getSelectedNode(),
|
||||
isReflistNodeSelected = selectedNode && selectedNode instanceof ve.dm.MWReferencesListNode;
|
||||
|
||||
|
@ -47,7 +46,8 @@ ve.ui.MWReferencesListCommand.prototype.execute = function ( surface ) {
|
|||
type: 'mwReferencesList',
|
||||
attributes: {
|
||||
listGroup: 'mwReference/',
|
||||
refGroup: ''
|
||||
refGroup: '',
|
||||
isResponsive: mw.config.get( 'wgCiteResponsiveReferences' )
|
||||
}
|
||||
},
|
||||
{ type: '/mwReferencesList' }
|
||||
|
|
Loading…
Reference in a new issue