diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 99beca31b..255d95653 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1079,10 +1079,15 @@ define([ // Container var $container = $(config.container); + var containerConfig = { + 'class': 'dropdown-bar' + }; + if (config.buttonTitle) { + containerConfig.title = config.buttonTitle; + } + if (!config.container) { - $container = $('', { - 'class': 'dropdown-bar' - }); + $container = $('', containerConfig); } // Button