Skip to content

Instantly share code, notes, and snippets.

@chicagoworks
Created December 28, 2010 21:56
Show Gist options
  • Save chicagoworks/757779 to your computer and use it in GitHub Desktop.
Save chicagoworks/757779 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