mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-24 07:34:11 +00:00
Wire up showing settings via footer link or cog icon
The changeListener is not wired up, so nothing will actually happen if you click the link or cog. You should see redux actions flow trying to show it though. Change-Id: I29e629db63a4511a76c132f44f2ebf13254a4c6f
This commit is contained in:
parent
034f1840ab
commit
e7c8f36a9f
|
@ -57,7 +57,10 @@
|
|||
return function ( prevState, state ) {
|
||||
if ( $footerLink === undefined ) {
|
||||
$footerLink = createFooterLink();
|
||||
$footerLink.click( boundActions.showSettings );
|
||||
$footerLink.click( function ( e ) {
|
||||
e.preventDefault();
|
||||
boundActions.showSettings();
|
||||
} );
|
||||
}
|
||||
|
||||
if ( state.preview.enabled ) {
|
||||
|
|
|
@ -267,6 +267,7 @@
|
|||
layoutPreview( preview, layout );
|
||||
|
||||
preview.el.hover( boundActions.previewDwell, boundActions.previewAbandon );
|
||||
preview.el.find( '.mwe-popups-settings-icon' ).click( boundActions.showSettings );
|
||||
|
||||
preview.el.show();
|
||||
|
||||
|
|
Loading…
Reference in a new issue