Esanders has uploaded a new change for review. https://gerrit.wikimedia.org/r/303569
Change subject: Moveend can get fired while the map is setting up so listen more than once ...................................................................... Moveend can get fired while the map is setting up so listen more than once Otherwise the done button isn't enabled when the map is moved. Change-Id: I85f9a16e17665fbbd70ac32f77acbfbb3d4677ba --- M modules/ve-maps/ve.ui.MWMapsDialog.js 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Kartographer refs/changes/69/303569/1 diff --git a/modules/ve-maps/ve.ui.MWMapsDialog.js b/modules/ve-maps/ve.ui.MWMapsDialog.js index e555c64..f8716de 100644 --- a/modules/ve-maps/ve.ui.MWMapsDialog.js +++ b/modules/ve-maps/ve.ui.MWMapsDialog.js @@ -146,7 +146,7 @@ this.updateActions(); this.resetMapButton.setDisabled( true ); - this.map.once( 'moveend', function () { + this.map.on( 'moveend', function () { dialog.updateActions(); dialog.resetMapButton.setDisabled( false ); } ); -- To view, visit https://gerrit.wikimedia.org/r/303569 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I85f9a16e17665fbbd70ac32f77acbfbb3d4677ba Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Kartographer Gerrit-Branch: master Gerrit-Owner: Esanders <esand...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits