mirror of https://github.com/xwiki-labs/cryptpad
add support for title attributes on dropdowns
This commit is contained in:
parent
01c4d7d4a7
commit
e1303a16da
|
@ -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 = $('<span>', {
|
||||
'class': 'dropdown-bar'
|
||||
});
|
||||
$container = $('<span>', containerConfig);
|
||||
}
|
||||
|
||||
// Button
|
||||
|
|
Loading…
Reference in New Issue