Created
February 5, 2014 20:02
-
-
Save pwdonald/8831884 to your computer and use it in GitHub Desktop.
jQuery UI Popup Message Helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PopUpMessage dialog helper | |
// Requires a div for messagebox and a inner div for inner-message | |
function PopupMessage(text,title) { | |
$('.inner-message').text(text); | |
$('.message-box').dialog( | |
{ | |
title: title, | |
modal: true, | |
buttons: [{ text: "Ok", click: function () { $(this).dialog("close"); } }] | |
}); | |
$('.message-box').css('visibility', 'visible'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment