jenkins-bot has submitted this change and it was merged. Change subject: Initialize actions toolbars ......................................................................
Initialize actions toolbars Right now .initialize() doesn't do anything other than enable the window resize handler for toggling the "narrow" styling, but as a matter of principle we should call .initialize() on toolbars after attaching them. Change-Id: I419c943d1d20af2105b84b8f5fbccc7070af601b --- M modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js M modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js 2 files changed, 2 insertions(+), 0 deletions(-) Approvals: Jforrester: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js index 87efefb..21272fa 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js @@ -920,6 +920,7 @@ ], this.getSurface() ); this.toolbar.$actions.append( this.actionsToolbar.$element, this.toolbarSaveButton.$element ); + this.actionsToolbar.initialize(); // Make the toolbar recalculate its sizes for narrow/wide switching. // This really should not be necessary. this.toolbar.narrowThreshold = this.toolbar.$group.width() + this.toolbar.$actions.width(); diff --git a/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js index 0675fb7..fca66db 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.MobileArticleTarget.js @@ -183,6 +183,7 @@ ); this.toolbar.$element.append( this.pageToolbar.$element ); + this.pageToolbar.initialize(); this.pageToolbar.$group.addClass( 've-init-mw-mobileArticleTarget-pageTools' ); this.toolbar.$group.addClass( 've-init-mw-mobileArticleTarget-editTools' ); -- To view, visit https://gerrit.wikimedia.org/r/236589 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I419c943d1d20af2105b84b8f5fbccc7070af601b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: Catrope <roan.katt...@gmail.com> Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits