|
|
@ -2136,9 +2136,14 @@ function rcube_elastic_ui()
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
target = $('#' + name).data('button');
|
|
|
|
target = $('#' + name).data('button');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!target) {
|
|
|
|
// catch cases as 'forwardmenu' where menu suffix has no hyphen
|
|
|
|
// catch cases as 'forwardmenu' where menu suffix has no hyphen
|
|
|
|
if (!target && name.match(/(?!-)menu$/)) {
|
|
|
|
// or try with -menu suffix if it's not in the menu name already
|
|
|
|
target = $('#' + name.substr(0, name.length - 4) + '-menu').data('button');
|
|
|
|
if (name.match(/(?!-)menu$/)) {
|
|
|
|
|
|
|
|
name = name.substr(0, name.length - 4);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
target = $('#' + name + '-menu').data('button');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|