MediaWiki:ChatSendButton.js

/* ChatSendButton - add a 'Send' button to the Chat message box */

/*jslint browser */ /*global $ */

$(function {    'use strict';

var $messageBox = $('.Write [name="message"]'); var $sendButton = $(' Send ');

$sendButton .css({           position: 'relative',            bottom: '10px',            left: '10px'        }) .click(function {            $messageBox.trigger({ type: 'keypress', which: 13 });       });

$messageBox .css('width', 'calc(100% - 70px)') .after($sendButton);

});