From d6356fe837f6eae2f5ddf0881c5ffb1fd8ee9697 Mon Sep 17 00:00:00 2001 From: cboulanger Date: Thu, 17 Aug 2023 11:55:38 +0200 Subject: [PATCH 1/2] WEB-3957 : Add new "Please help!" menu in Plone toolbar --- CHANGES.rst | 3 + .../smartweb/core/browser/static/src/edit.js | 4 +- .../core/browser/static/src/edit.less | 5 + src/imio/smartweb/core/tests/test_toolbar.py | 44 ++++++- .../smartweb/core/viewlets/configure.zcml | 16 ++- src/imio/smartweb/core/viewlets/interfaces.py | 20 +++ src/imio/smartweb/core/viewlets/toolbar.py | 115 ++++++++++++++++-- 7 files changed, 194 insertions(+), 13 deletions(-) create mode 100644 src/imio/smartweb/core/viewlets/interfaces.py diff --git a/CHANGES.rst b/CHANGES.rst index 162c835b..48c10a41 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,9 @@ Changelog 1.1.20 (unreleased) ------------------- +- WEB-3957 : Add new "Please help!" menu in Plone toolbar + [boulch] + - WEB-3972 : Add "elloha" plugin in external content section [boulch] diff --git a/src/imio/smartweb/core/browser/static/src/edit.js b/src/imio/smartweb/core/browser/static/src/edit.js index dca16631..71a305a1 100644 --- a/src/imio/smartweb/core/browser/static/src/edit.js +++ b/src/imio/smartweb/core/browser/static/src/edit.js @@ -1,6 +1,5 @@ import './edit.less' jQuery(document).ready(function ($) { - // Hide / show editor's tools & messages when clicking on "Preview" in Plone toolbar $("#contentview-preview a").click(function(e){ $(".hide-in-preview, #section-byline, #global_statusmessage").toggle("fast"); @@ -11,5 +10,8 @@ jQuery(document).ready(function ($) { var auth_sources = $("#plone-authentic-sources-menu").wrap("