MediaWiki:ESW.js

// Returns a warning when the edit summary is left blank. // Only accefts the main namespace. $('#wpSave').click(function {   if (wgNamespaceNumber === 0 && !$('#wpSummary').val) {        $.showCustomModal('Edit summary', 'You left the edit summary blank. Please help other contributors pick up where you left off by writing edit summaries. Thank you.', { id: 'edit-summary-error', width: 400, buttons: [{ message: 'OK', defaultButton: true, handler: function { $('#edit-summary-error').closeModal; }           }]        });        return false;    } });