[FIX] typo in doc

bzr revid: nicolas.vanhoren@openerp.com-20121122100953-2z1vbvqqmn1jsz88
This commit is contained in:
niv-openerp 2012-11-22 11:09:53 +01:00
parent 425ea97a39
commit 7e13ccb265
1 changed files with 5 additions and 5 deletions

View File

@ -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, - 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 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). 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 . @param {jQuery object} content Some content to replace this.$el .
*/ */
init: function (parent, options, content) { 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(). @param {dictionary} options Additional options, see the options param in init().
@return this @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(). @param {dictionary} options Additional options, see the options param in init().
@return The result returned by start(). @return The result returned by start().
@ -192,7 +192,7 @@ instance.web.Dialog = instance.web.Widget.extend({
return res; 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() { close: function() {
if (this.dialog_inited && this.$el.is(":data(dialog)")) { 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 () { destroy: function () {
this.$buttons.remove(); this.$buttons.remove();