mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-15 11:40:43 +00:00
Merge "Add button to reopen the help dialog."
This commit is contained in:
commit
d4ea6b838f
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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' )
|
||||
|
|
Loading…
Reference in a new issue