mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 08:23:52 +00:00
Ensure we won't set 'seenautotopicsubpopup' pref when not showing the popup
Change-Id: I20f1672bb40b07672474e81e7e59a440bf1f068b
This commit is contained in:
parent
3265b649cd
commit
0110fe8b8d
|
@ -317,6 +317,10 @@ function initTopicSubscriptions( $container ) {
|
|||
}
|
||||
|
||||
function maybeShowFirstTimeAutoTopicSubPopup() {
|
||||
if ( !lastHighlightComment ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( seenAutoTopicSubPopup ) {
|
||||
return;
|
||||
}
|
||||
|
@ -326,10 +330,6 @@ function maybeShowFirstTimeAutoTopicSubPopup() {
|
|||
|
||||
var $popupContent, popup;
|
||||
|
||||
if ( !lastHighlightComment ) {
|
||||
return;
|
||||
}
|
||||
|
||||
function close() {
|
||||
popup.$element.removeClass( 'ext-discussiontools-autotopicsubpopup-fadein' );
|
||||
setTimeout( function () {
|
||||
|
|
Loading…
Reference in a new issue