dialog.js

Simple wrapper for yes/no dialog, containing any data.


Objects

Methods

Properties


OAT.Dialog(title, contentDiv, optObj)

Creates a dialog window with title of title, appends contentDiv into it. Various options specify its appearance and behavior:

OAT.Dialog::show()

Shows the dialog.

OAT.Dialog::hide()

Hides the dialog.

OAT.Dialog::ok

Callback to be performed when user clicks 'OK' button.

OAT.Dialog::cancel

Callback to be performed when user clicks 'Cancel' button.

var d = new OAT.Dialog("dialog", div, {modal:1, buttons:1});
d.show();