summaryrefslogtreecommitdiff
path: root/addons/website/static/lib/summernote/src/js/module/Toolbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website/static/lib/summernote/src/js/module/Toolbar.js')
-rw-r--r--addons/website/static/lib/summernote/src/js/module/Toolbar.js58
1 files changed, 0 insertions, 58 deletions
diff --git a/addons/website/static/lib/summernote/src/js/module/Toolbar.js b/addons/website/static/lib/summernote/src/js/module/Toolbar.js
deleted file mode 100644
index 832b7c4c561..00000000000
--- a/addons/website/static/lib/summernote/src/js/module/Toolbar.js
+++ /dev/null
@@ -1,58 +0,0 @@
-define([
- 'summernote/core/list',
- 'summernote/module/Button'
-], function (list, Button) {
- /**
- * Toolbar
- */
- var Toolbar = function () {
- var button = new Button();
-
- this.button = button; // odoo change for overwrite
-
- this.update = function ($toolbar, styleInfo) {
- button.update($toolbar, styleInfo);
- };
-
- /**
- * @param {Node} button
- * @param {String} eventName
- * @param {String} value
- */
- this.updateRecentColor = function (buttonNode, eventName, value) {
- button.updateRecentColor(buttonNode, eventName, value);
- };
-
- /**
- * activate buttons exclude codeview
- * @param {jQuery} $toolbar
- */
- this.activate = function ($toolbar) {
- $toolbar.find('button')
- .not('button[data-event="codeview"]')
- .removeClass('disabled');
- };
-
- /**
- * deactivate buttons exclude codeview
- * @param {jQuery} $toolbar
- */
- this.deactivate = function ($toolbar) {
- $toolbar.find('button')
- .not('button[data-event="codeview"]')
- .addClass('disabled');
- };
-
- this.updateFullscreen = function ($container, bFullscreen) {
- var $btn = $container.find('button[data-event="fullscreen"]');
- $btn.toggleClass('active', bFullscreen);
- };
-
- this.updateCodeview = function ($container, isCodeview) {
- var $btn = $container.find('button[data-event="codeview"]');
- $btn.toggleClass('active', isCodeview);
- };
- };
-
- return Toolbar;
-});