User:MrAwesome8/chatbtn.js

//idea from friend for testing function emot { $.showCustomModal('EM',       ' ', {            id: 'cancel',            width: 380,            buttons: [{                message: 'OK',                defaultButton: true,                handler: function  {                if (confirm("disable emote?")) {                    rE;                   }             }	            },{		                 message: 'Cancel',                handler: function  {                    close;                    }            }]    }); } function close { $('#cancel').closeModal; } function rE { var emot = $('#emot').val; $('#Write [name="message"]').val(emot); $('#cancel').closeModal; } $('E').appendTo($('.Write'));