Merge "Add button to reopen the help dialog."

This commit is contained in:
jenkins-bot 2016-06-17 11:23:56 +00:00 committed by Gerrit Code Review
commit d4ea6b838f
2 changed files with 25 additions and 0 deletions

View file

@ -2,6 +2,7 @@
/* This will flip with CSSJanus in case */
/* the interface is in RTL */
direction: ltr;
position: relative;
}
.mw-revision {
position: relative;
@ -186,3 +187,18 @@
font-size: 15px;
font-size: 1rem;
}
.mw-show-help {
position: absolute;
right: -18px;
bottom: 7px;
color: #347bff;
border: 2px solid #347bff;
padding: 0;
background: #fff;
font-size: 15px;
line-height: 15px;
font-weight: bold;
cursor: pointer;
height: 25px;
width: 25px;
}

View file

@ -29,6 +29,15 @@
mw.libs.revisionSlider.HelpDialog.show();
( new mw.Api() ).saveOption( 'userjs-revslider-hidehelp', true );
}
$container.append(
$( '<button>' )
.click( function () {
mw.libs.revisionSlider.HelpDialog.show();
} )
.text( '?' )
.addClass( 'mw-show-help' )
);
} catch ( err ) {
if ( err === 'RS-rev-out-of-range' ) {
$( '#mw-revision-slider-placeholder' )