From 1f78d2b83c681c5f53159874505ed1cbb9bc135d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Tisza?= Date: Wed, 17 Sep 2014 22:30:55 +0000 Subject: [PATCH] Fix patch which fixes the reuse dropdowns See https://bugzilla.wikimedia.org/show_bug.cgi?id=70968 for explanation. Bug: 70918 Change-Id: Ibe1c4c1e415952982049d7c581253bb5b8a2e500 Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/897 --- resources/mmv/ui/mmv.ui.reuse.download.js | 2 +- resources/mmv/ui/mmv.ui.reuse.embed.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/mmv/ui/mmv.ui.reuse.download.js b/resources/mmv/ui/mmv.ui.reuse.download.js index 4b1101460..6f108af2f 100644 --- a/resources/mmv/ui/mmv.ui.reuse.download.js +++ b/resources/mmv/ui/mmv.ui.reuse.download.js @@ -109,7 +109,7 @@ 'original' ); - this.downloadSizeMenu.on( 'select', function( item ) { + this.downloadSizeMenu.getMenu().on( 'select', function( item ) { mw.mmv.actionLogger.log( 'download-select-menu-' + item.data.name ); } ); diff --git a/resources/mmv/ui/mmv.ui.reuse.embed.js b/resources/mmv/ui/mmv.ui.reuse.embed.js index 77f5b890c..d41b6ad0b 100644 --- a/resources/mmv/ui/mmv.ui.reuse.embed.js +++ b/resources/mmv/ui/mmv.ui.reuse.embed.js @@ -196,7 +196,7 @@ 'default' ); - this.embedSizeSwitchWikitext.on( 'select', function( item ) { + this.embedSizeSwitchWikitext.getMenu().on( 'select', function( item ) { mw.mmv.actionLogger.log( 'embed-select-menu-wikitext-' + item.data.name ); } ); @@ -207,7 +207,7 @@ 'original' ); - this.embedSizeSwitchHtml.on( 'select', function( item ) { + this.embedSizeSwitchHtml.getMenu().on( 'select', function( item ) { mw.mmv.actionLogger.log( 'embed-select-menu-html-' + item.data.name ); } );