mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
Hygiene: Stop using id for footer
No need. Class works perfectly fine here. Change-Id: I8188e759ad3eed971d5847b23d49b333d80b509f
This commit is contained in:
parent
178ec1b816
commit
965a8b8a2f
|
@ -223,8 +223,7 @@
|
|||
|
||||
_getFooterElement: function() {
|
||||
var $prefLink = $( '#pt-preferences a' ),
|
||||
$overlayFooter = $( '<div>' )
|
||||
.attr( 'id', 'mw-echo-overlay-footer' );
|
||||
$overlayFooter = $( '<div class="mw-echo-overlay-footer">' );
|
||||
|
||||
// add link to notifications archive
|
||||
$overlayFooter.append(
|
||||
|
|
|
@ -155,7 +155,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
#mw-echo-overlay-footer {
|
||||
.mw-echo-overlay-footer {
|
||||
padding: 0;
|
||||
border-top: 1px solid #DDDDDD;
|
||||
display: table;
|
||||
|
|
|
@ -150,7 +150,7 @@
|
|||
assert.strictEqual( $overlay.find( '.mw-echo-notifications' ).length, 1, 'Overlay contains a list of notifications.' );
|
||||
assert.strictEqual( $overlay.find( '.mw-echo-notifications li' ).length, 2, 'There are two notifications.' );
|
||||
assert.strictEqual( $overlay.find( '.mw-echo-unread' ).length, 1, 'There is one unread notification.' );
|
||||
assert.strictEqual( $overlay.find( '#mw-echo-overlay-footer a' ).length, 2,
|
||||
assert.strictEqual( $overlay.find( '.mw-echo-overlay-footer a' ).length, 2,
|
||||
'There is a footer with 2 links to preferences and all notifications.' );
|
||||
assert.strictEqual( this.$badge.text(),
|
||||
'0', 'The alerts are marked as read once opened.' );
|
||||
|
|
Loading…
Reference in a new issue