mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Follow-up I63ab27cb: Get rid of notices tool when there are no notices
Bug: T151423 Change-Id: I3dd9d2cbfb1fa536490eb8b4b7d630e9c6cfdd48
This commit is contained in:
parent
3d8a749cf2
commit
b89a6ee463
|
@ -93,7 +93,7 @@ ve.ui.MWNoticesPopupTool.prototype.setNotices = function ( notices ) {
|
||||||
this.popup.$body.append( this.$items );
|
this.popup.$body.append( this.$items );
|
||||||
|
|
||||||
if ( !count ) {
|
if ( !count ) {
|
||||||
this.$element = $( [] );
|
this.destroy();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue