mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 08:13:38 +00:00
Merge "Clean up issues left c/121064"
This commit is contained in:
commit
9375c63958
|
@ -82,7 +82,6 @@
|
||||||
* Currently selected size menu.
|
* Currently selected size menu.
|
||||||
* @property {OO.ui.MenuWidget}
|
* @property {OO.ui.MenuWidget}
|
||||||
*/
|
*/
|
||||||
this.currentSizeMenu = this.embedSizeSwitchWikitext.getMenu();
|
|
||||||
this.currentSizeMenu = mw.user.isAnon() ? this.embedSizeSwitchHtml.getMenu() : this.embedSizeSwitchWikitext.getMenu();
|
this.currentSizeMenu = mw.user.isAnon() ? this.embedSizeSwitchHtml.getMenu() : this.embedSizeSwitchWikitext.getMenu();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -424,8 +423,6 @@
|
||||||
.done( function ( thumbnail ) {
|
.done( function ( thumbnail ) {
|
||||||
embed.updateEmbedHtml( thumbnail );
|
embed.updateEmbedHtml( thumbnail );
|
||||||
embed.select();
|
embed.select();
|
||||||
// This is needed to update the input's wikitext/html based on the currently selected item
|
|
||||||
embed.currentSizeMenu.selectItem( embed.currentSizeMenu.getSelectedItem() );
|
|
||||||
} );
|
} );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue