add support for title attributes on dropdowns
This commit is contained in:
@@ -1079,10 +1079,15 @@ define([
|
|||||||
|
|
||||||
// Container
|
// Container
|
||||||
var $container = $(config.container);
|
var $container = $(config.container);
|
||||||
|
var containerConfig = {
|
||||||
|
'class': 'dropdown-bar'
|
||||||
|
};
|
||||||
|
if (config.buttonTitle) {
|
||||||
|
containerConfig.title = config.buttonTitle;
|
||||||
|
}
|
||||||
|
|
||||||
if (!config.container) {
|
if (!config.container) {
|
||||||
$container = $('<span>', {
|
$container = $('<span>', containerConfig);
|
||||||
'class': 'dropdown-bar'
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Button
|
// Button
|
||||||
|
|||||||
Reference in New Issue
Block a user