resources/src/mediawiki.page.watch.ajax/watch-ajax.js
Function watchstar
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function watchstar( $links, title, callback ) {
// Set up the ARIA connection between the watch link and the notification.
// This is set outside the click handler so that it's already present when the user clicks.
var notificationId = 'mw-watchlink-notification';
var mwTitle = mw.Title.newFromText( title );
Function updateWatchLinkAttributes
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateWatchLinkAttributes( $link, action, state, expiry ) {
// A valid but empty jQuery object shouldn't throw a TypeError
if ( !$link.length ) {
return;
}
Function updateWatchLink
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function updateWatchLink( titleOrLink, action, state, expiry, expirySelected ) {