mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Merge "Reserve space for the "Reply" link when hiding it"
This commit is contained in:
commit
f64ecd9904
|
@ -20,7 +20,7 @@ function setupComment( comment ) {
|
|||
.on( 'click', function () {
|
||||
var $link = $( this );
|
||||
|
||||
$link.hide();
|
||||
$link.addClass( 'dt-init-replylink-active' );
|
||||
// TODO: Allow users to use multiple reply widgets simlutaneously
|
||||
// Currently as all widgets share the same Parsoid doc, this could
|
||||
// cause problems.
|
||||
|
@ -42,7 +42,7 @@ function setupComment( comment ) {
|
|||
);
|
||||
|
||||
replyWidget.on( 'cancel', function () {
|
||||
$link.show();
|
||||
$link.removeClass( 'dt-init-replylink-active' );
|
||||
$pageContainer.removeClass( 'dt-init-replylink-open' );
|
||||
$( newListItem ).hide();
|
||||
} );
|
||||
|
@ -50,7 +50,7 @@ function setupComment( comment ) {
|
|||
$( newListItem ).empty().append( replyWidget.$element );
|
||||
return replyWidget;
|
||||
}, function () {
|
||||
$link.show();
|
||||
$link.removeClass( 'dt-init-replylink-active' );
|
||||
$pageContainer.removeClass( 'dt-init-replylink-open' );
|
||||
} );
|
||||
}
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
user-select: none;
|
||||
margin-left: 0.25em;
|
||||
|
||||
&.dt-init-replylink-active {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.dt-init-replylink-open & {
|
||||
color: #72777d;
|
||||
pointer-events: none;
|
||||
|
|
Loading…
Reference in a new issue