Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Samnan/1044730 to your computer and use it in GitHub Desktop.
Save Samnan/1044730 to your computer and use it in GitHub Desktop.
jQuery UI dialog extension to set the message body of the dialog similar to the way dialog title is set.
var __setOption = $.ui.dialog.prototype._setOption;
$.extend($.ui.dialog.prototype, {
_setOption : function (key, value) {
var self = this,
uiDialog = self.uiDialog;
if (key === 'message') {
self.element.html("" + (value || ' '));
}
__setOption.apply(self, arguments);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment