An MIT-licensed, lightweight jQuery dialog.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



Dialog is a very simple jQuery-based plugin for creating, well, dialogs that I wrote for use at isocket. There’s no CSS, but the jQuery plugin itself is free for use under the MIT license (which jQuery also uses.) Feel free to use it in your projects, as a gift from this startup to yours.


Dialog is simple: you have $ and $.dialog.hide().

To wrap a dialog around this with a simple OK button, you don’t have to do much:

${ title: 'Dialog Title', body: 'This is some text I want to put in the dialog' });

dialog will do the rest.

Custom buttons and button callbacks

The common OK button state will simply close the window. If you wish to make custom callback functions or process data, you may create your own button objects and pass them along in the buttons parameter. dialog will accept an array of objects and parse them into multiple buttons. The button object type allows for three properties: caption, class and callback. For example, a button captioned LOL with class lmao and a callback which fires the alert lmfao would be added to the dialog parameters as follows:

${ title: 'Dialog Title', body: 'some text', buttons: '{caption: 'LOL', class: 'lmao', callback: function() { alert('lmfao'); }});

Note that a buttons array with a length of 1 will be parsed equivalently.


Note that dialog is not officially supported by me or isocket — use it at your own risk. Upstream patches may be submitted to me at