Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Show a message box
- haste.prototype.showMessage = function(msg, cls) {
- var msgBox = $('<li class="'+(cls || 'info')+'">'+msg+'</li>');
- $('#messages').prepend(msgBox);
- setTimeout(function() {
- msgBox.slideUp('fast', function() { $(this).remove(); });
- }, 3000);
- };
Add Comment
Please, Sign In to add comment