-
-
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.
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
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