Merge "Add constructed class and messages names in comment for greppability"

This commit is contained in:
jenkins-bot 2015-09-10 22:42:35 +00:00 committed by Gerrit Code Review
commit b5a31ed9d0

View file

@ -89,14 +89,18 @@
framed: false,
flags: buttonFlags,
label: this.numItems,
// The following messages can be used here:
// tooltip-pt-notifications-alert
// tooltip-pt-notifications-message
title: mw.msg( 'tooltip-pt-notifications-' + this.type ),
popup: {
$content: this.notificationsWidget.$element,
$footer: $footer,
width: config.popupWidth || 450,
head: true,
// This covers the messages 'echo-notification-alert-text-only'
// and 'echo-notification-message-text-only'
// The following messages can be used here:
// echo-notification-alert-text-only
// echo-notification-message-text-only
label: mw.msg( 'echo-notification-' + this.type + '-text-only' )
}
}, config ) );
@ -129,6 +133,9 @@
} );
this.popup.connect( this, { toggle: 'onPopupToggle' } );
// The following classes can be used here:
// mw-echo-ui-notificationBadgeButtonPopupWidget-alert
// mw-echo-ui-notificationBadgeButtonPopupWidget-message
this.$element
.addClass(
'mw-echo-ui-notificationBadgeButtonPopupWidget ' +