diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-11-22 11:09:53 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-11-22 11:09:53 +0100 |
| commit | 7e13ccb265d2515cd141c735cf02f658034ef477 (patch) | |
| tree | caecf6b7a7ba607fdccc704116ad5b921bba8efa /addons/web/static/src/js | |
| parent | 425ea97a392246306efa69794a804c38c7727a64 (diff) | |
[FIX] typo in doc
bzr revid: nicolas.vanhoren@openerp.com-20121122100953-2z1vbvqqmn1jsz88
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index e800012afb1..4fd835e90be 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -70,7 +70,7 @@ instance.web.Dialog = instance.web.Widget.extend({ - buttons: The buttons key is not propagated to jQueryUI Dialog. It must be a dictionary (key = button label, value = click handler) or a list of dictionaries (each element in the dictionary is send to the corresponding method of a jQuery element targeting the <button> tag). - - destroy_on_close: Default to true. If true and the dialog is closed, it is automatically destroyed. + - destroy_on_close: Default true. If true and the dialog is closed, it is automatically destroyed. @param {jQuery object} content Some content to replace this.$el . */ init: function (parent, options, content) { @@ -141,7 +141,7 @@ instance.web.Dialog = instance.web.Widget.extend({ } }, /** - Open the popup. Init the dialog if it is not already inited. + Opens the popup. Inits the dialog if it is not already inited. @param {dictionary} options Additional options, see the options param in init(). @return this @@ -171,7 +171,7 @@ instance.web.Dialog = instance.web.Widget.extend({ }); }, /** - Initialize the popup. + Initializes the popup. @param {dictionary} options Additional options, see the options param in init(). @return The result returned by start(). @@ -192,7 +192,7 @@ instance.web.Dialog = instance.web.Widget.extend({ return res; }, /** - Close the popup, if destroy_on_close was passed to the constructor, it is also destroyed. + Closes the popup, if destroy_on_close was passed to the constructor, it is also destroyed. */ close: function() { if (this.dialog_inited && this.$el.is(":data(dialog)")) { @@ -209,7 +209,7 @@ instance.web.Dialog = instance.web.Widget.extend({ } }, /** - Destroy the popup, also closes it. + Destroys the popup, also closes it. */ destroy: function () { this.$buttons.remove(); |
