mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
suppress tooltip / statustext / title on mobile devices
This commit is contained in:
parent
5dbf3152f3
commit
d6dfaaab81
@ -84,7 +84,7 @@ export class Et2LAvatar extends Et2Avatar
|
|||||||
let label = (this.egw().preference("account_display", "common") || "firstname").includes("first") || !this.lname || !this.fname ?
|
let label = (this.egw().preference("account_display", "common") || "firstname").includes("first") || !this.lname || !this.fname ?
|
||||||
this.fname + " " + this.lname :
|
this.fname + " " + this.lname :
|
||||||
this.lname + ", " + this.fname;
|
this.lname + ", " + this.fname;
|
||||||
if(label != this.statustext)
|
if(label != this.statustext && !egwIsMobile())
|
||||||
{
|
{
|
||||||
this.statustext = label.trim();
|
this.statustext = label.trim();
|
||||||
}
|
}
|
||||||
|
@ -1265,7 +1265,7 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
|
|||||||
<sl-option
|
<sl-option
|
||||||
part="option"
|
part="option"
|
||||||
exportparts="prefix:tag__prefix, suffix:tag__suffix, image"
|
exportparts="prefix:tag__prefix, suffix:tag__suffix, image"
|
||||||
title="${!option.title || this.noLang ? option.title : this.egw().lang(option.title)}"
|
title="${!egwIsMobile() && option.title ? (this.noLang ? option.title : this.egw().lang(option.title)) : nothing}"
|
||||||
class=${classMap({
|
class=${classMap({
|
||||||
...classes
|
...classes
|
||||||
})}
|
})}
|
||||||
|
@ -37,7 +37,7 @@ export class Et2UrlEmailReadonly extends Et2UrlReadonly
|
|||||||
{
|
{
|
||||||
this._value = val;
|
this._value = val;
|
||||||
const split = splitEmail(this._value);
|
const split = splitEmail(this._value);
|
||||||
super.statustext = split.name ? split.email : "";
|
super.statustext = !egwIsMobile() && split.name ? split.email : "";
|
||||||
formatEmailAddress(val, !this.emailDisplay ? "email" :
|
formatEmailAddress(val, !this.emailDisplay ? "email" :
|
||||||
(this.emailDisplay === 'preference' ? null : this.emailDisplay)).then(
|
(this.emailDisplay === 'preference' ? null : this.emailDisplay)).then(
|
||||||
(value) => super.value = value);
|
(value) => super.value = value);
|
||||||
|
@ -660,7 +660,7 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
|
|||||||
|
|
||||||
if (action.caption)
|
if (action.caption)
|
||||||
{
|
{
|
||||||
widget.statustext = action.caption;
|
if (!egwIsMobile()) widget.statustext = action.caption;
|
||||||
if ((this.countActions <= parseInt(this.view_range) ||
|
if ((this.countActions <= parseInt(this.view_range) ||
|
||||||
this.preference[action.id] || !action.iconUrl) &&
|
this.preference[action.id] || !action.iconUrl) &&
|
||||||
!(isCheckbox && isToggleSwitch)) // no caption for slideswitch checkboxes
|
!(isCheckbox && isToggleSwitch)) // no caption for slideswitch checkboxes
|
||||||
|
@ -178,7 +178,7 @@ egw.extend('tooltip', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
var options = {...optionsDefault, ...(_options||{})};
|
var options = {...optionsDefault, ...(_options||{})};
|
||||||
|
|
||||||
_elem = jQuery(_elem);
|
_elem = jQuery(_elem);
|
||||||
if (_html != '')
|
if (_html && !egwIsMobile())
|
||||||
{
|
{
|
||||||
_elem.bind('mouseenter.tooltip', function(e) {
|
_elem.bind('mouseenter.tooltip', function(e) {
|
||||||
if (_elem != current_elem)
|
if (_elem != current_elem)
|
||||||
@ -263,5 +263,4 @@ egw.extend('tooltip', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user