From e1303a16dad8b288a73c8275548259f6c4e4fa1e Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 2 Mar 2017 17:40:29 +0100 Subject: [PATCH] add support for title attributes on dropdowns --- www/common/cryptpad-common.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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