mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Make generateCitationFeatures() not explode when citation code isn't loaded"
This commit is contained in:
commit
cf56fbd0c4
|
@ -761,6 +761,11 @@ ve.init.mw.Target.onSerializeError = function ( jqXHR, status, error ) {
|
|||
ve.init.mw.Target.prototype.generateCitationFeatures = function () {
|
||||
var i, len, item, name, tool, tools, dialog;
|
||||
|
||||
if ( !ve.ui.MWCitationDialog ) {
|
||||
// Citation module isn't loaded, so skip this
|
||||
return;
|
||||
}
|
||||
|
||||
/*jshint loopfunc:true */
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue