summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/chrome/control_panel.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-10-10 19:14:30 +0200
committerChristophe Simonis <chs@odoo.com>2017-10-10 19:14:30 +0200
commit0be264b29eac11a5dec5e6565d23d4ea86bd905a (patch)
tree79362f2340c89cb3cf2e8d8a467f357b7c7a8326 /addons/web/static/src/js/chrome/control_panel.js
parentcf753a7fdf1739dcf37d2ad74f4c8efb3d4ff3b3 (diff)
parente1104ac344cbc349a46b22339b13dfe9cbab8bcb (diff)
[MERGE] forward port branch 11.0 up to e1104ac344c
Diffstat (limited to 'addons/web/static/src/js/chrome/control_panel.js')
-rw-r--r--addons/web/static/src/js/chrome/control_panel.js46
1 files changed, 23 insertions, 23 deletions
diff --git a/addons/web/static/src/js/chrome/control_panel.js b/addons/web/static/src/js/chrome/control_panel.js
index 8be394205d5..98ce7814b7a 100644
--- a/addons/web/static/src/js/chrome/control_panel.js
+++ b/addons/web/static/src/js/chrome/control_panel.js
@@ -10,32 +10,32 @@ odoo.define('web.ControlPanelMixin', function (require) {
* we get the time to refactor the control panel.
*
* For example, here is what a typical client action would need to do to add
- * support for a control panel with some buttons:
+ * support for a control panel with some buttons::
*
- * var ControlPanelMixin = require('web.ControlPanelMixin');
+ * var ControlPanelMixin = require('web.ControlPanelMixin');
*
- * var SomeClientAction = Widget.extend(ControlPanelMixin, {
- * ...
- * start: function () {
- * this._renderButtons();
- * this._updateControlPanel();
+ * var SomeClientAction = Widget.extend(ControlPanelMixin, {
* ...
- * },
- * do_show: function () {
- * ...
- * this._updateControlPanel();
- * },
- * _renderButtons: function () {
- * this.$buttons = $(QWeb.render('SomeTemplate.Buttons'));
- * this.$buttons.on('click', ...);
- * },
- * _updateControlPanel: function () {
- * this.update_control_panel({
- * breadcrumbs: this.action_manager.get_breadcrumbs(),
- * cp_content: {
- * $buttons: this.$buttons,
- * },
- * });
+ * start: function () {
+ * this._renderButtons();
+ * this._updateControlPanel();
+ * ...
+ * },
+ * do_show: function () {
+ * ...
+ * this._updateControlPanel();
+ * },
+ * _renderButtons: function () {
+ * this.$buttons = $(QWeb.render('SomeTemplate.Buttons'));
+ * this.$buttons.on('click', ...);
+ * },
+ * _updateControlPanel: function () {
+ * this.update_control_panel({
+ * breadcrumbs: this.action_manager.get_breadcrumbs(),
+ * cp_content: {
+ * $buttons: this.$buttons,
+ * },
+ * });
*/
var ControlPanelMixin = {
need_control_panel: true,