diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-03-04 14:32:33 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-07-10 17:00:13 +0200 |
| commit | cebc73ebf9aa2bd6d8026473344af16726effec1 (patch) | |
| tree | 55a8de23a6cf7f551aeabf58195e7ba8e1c76686 /addons/website/static/lib/summernote/src/js/module/Toolbar.js | |
| parent | c1f39d0ca74486de714ea85f56b6924a9a520757 (diff) | |
[IMP] web_editor: move summernote & nearest lib from website
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.js | 58 |
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; -}); |
