User:Shodai Tsuchi/MusicChat.js

//Music in Chat //Written by Shodai Tsuchi function Music { $.showCustomModal('Music',       ' ', {            id: 'cancel',            width: 380,            buttons: [{                message: 'OK',                defaultButton: true,                handler: function  {                if (confirm("You really want to put music on chat?")) {                    addMusic;                   }             }	            },{		                 message: 'Cancel',                handler: function  {                    close;                    }            }]    }); } function close { $('#cancel').closeModal; } function addMusic { var music = $('#music').val; music = $('body').append('  '); $('#cancel').closeModal; } $('Music').appendTo($('.Write'));