diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-02-12 15:12:24 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-02-26 17:09:23 +0000 |
| commit | a80775ce3c7d098cf4b9524a1a38607d50d63d2c (patch) | |
| tree | dce6fc9ee94e230ffd890f8919b90962794d9938 /addons/website/static/src/js/menu/edit.js | |
| parent | d946b7a85d2c1bbc20ace8e2b269be56a63876fd (diff) | |
[REF] website, *: stop using 'animation' confusing name
* web, website_blog, website_sale, website_twitter
Before this PR, all website widgets were named 'Animation'. Now that
they are 'Public Widgets', we can at last stop using the confusing
'animation' name.
Part of https://github.com/odoo/odoo/pull/29442
task-1932066
Diffstat (limited to 'addons/website/static/src/js/menu/edit.js')
| -rw-r--r-- | addons/website/static/src/js/menu/edit.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/addons/website/static/src/js/menu/edit.js b/addons/website/static/src/js/menu/edit.js index e3883cac4b3..a9712be72bb 100644 --- a/addons/website/static/src/js/menu/edit.js +++ b/addons/website/static/src/js/menu/edit.js @@ -92,7 +92,7 @@ var EditPageMenu = websiteNavbarData.WebsiteNavbarActionWidget.extend({ if (this.editModeEnable) { return; } - this.trigger_up('animation_stop_demand', { + this.trigger_up('widgets_stop_request', { $target: this._targetForEdition(), }); var $welcomeMessageParent = null; @@ -112,7 +112,7 @@ var EditPageMenu = websiteNavbarData.WebsiteNavbarActionWidget.extend({ .not('[data-editor-message]') .attr('data-editor-message', _t('DRAG BUILDING BLOCKS HERE')); var def = $.Deferred(); - self.trigger_up('animation_start_demand', { + self.trigger_up('widgets_start_request', { editableMode: true, onSuccess: def.resolve.bind(def), onFailure: def.reject.bind(def), @@ -154,77 +154,77 @@ var EditPageMenu = websiteNavbarData.WebsiteNavbarActionWidget.extend({ /** * Called when content will be destroyed in the page. Notifies the - * WebsiteRoot that is should stop the animations. + * WebsiteRoot that is should stop the public widgets. * * @private * @param {OdooEvent} ev */ _onContentWillBeDestroyed: function (ev) { - this.trigger_up('animation_stop_demand', { + this.trigger_up('widgets_stop_request', { $target: ev.data.$target, }); }, /** * Called when content was recreated in the page. Notifies the - * WebsiteRoot that is should start the animations. + * WebsiteRoot that is should start the public widgets. * * @private * @param {OdooEvent} ev */ _onContentWasRecreated: function (ev) { - this.trigger_up('animation_start_demand', { + this.trigger_up('widgets_start_request', { editableMode: true, $target: ev.data.$target, }); }, /** * Called when edition will stop. Notifies the - * WebsiteRoot that is should stop the animations. + * WebsiteRoot that is should stop the public widgets. * * @private * @param {OdooEvent} ev */ _onEditionWillStop: function (ev) { this.$editorMessageElements.removeAttr('data-editor-message'); - this.trigger_up('animation_stop_demand', { + this.trigger_up('widgets_stop_request', { $target: this._targetForEdition(), }); }, /** * Called when edition was stopped. Notifies the - * WebsiteRoot that is should start the animations. + * WebsiteRoot that is should start the public widgets. * * @private * @param {OdooEvent} ev */ _onEditionWasStopped: function (ev) { - this.trigger_up('animation_start_demand', { + this.trigger_up('widgets_start_request', { $target: this._targetForEdition(), }); this.editModeEnable = false; }, /** * Called when a snippet is cloned in the page. Notifies the WebsiteRoot - * that is should start the animations for this snippet. + * that is should start the public widgets for this snippet. * * @private * @param {OdooEvent} ev */ _onSnippetCloned: function (ev) { - this.trigger_up('animation_start_demand', { + this.trigger_up('widgets_start_request', { editableMode: true, $target: ev.data.$target, }); }, /** * Called when a snippet is dropped in the page. Notifies the WebsiteRoot - * that is should start the animations for this snippet. + * that is should start the public widgets for this snippet. * * @private * @param {OdooEvent} ev */ _onSnippetDropped: function (ev) { - this.trigger_up('animation_start_demand', { + this.trigger_up('widgets_start_request', { editableMode: true, $target: ev.data.$target, }); |
