forked from extern/egroupware
Hide email address if there's a name, but allow showing it via CSS if desired
This commit is contained in:
parent
b94ea49aa3
commit
edc1f098f3
@ -308,7 +308,7 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
|
||||
this.span.attr("target", "_blank");
|
||||
}
|
||||
}
|
||||
// Remove email address if there's a name
|
||||
// wrap email address if there's a name
|
||||
if (this.span.text() && this.span.text().split("<"))
|
||||
{
|
||||
var val = this.span.text().split("<");
|
||||
@ -319,6 +319,11 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
|
||||
this.span.attr('title',_value);
|
||||
|
||||
this.span.text(val.replace(/"/g,''));
|
||||
this.span.append("<span class='email'>"+
|
||||
_value.replace(val,'')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
+"</span>");
|
||||
|
||||
}
|
||||
|
||||
|
@ -185,6 +185,9 @@ a.et2_url.url {
|
||||
box-shadow: none !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
.et2_email > span.email {
|
||||
display: none;
|
||||
}
|
||||
/**
|
||||
* Button widget - text only, and icon
|
||||
*/
|
||||
|
@ -453,6 +453,9 @@ div.mail-compose_fileselector {
|
||||
position: relative;
|
||||
background-color: white;
|
||||
}
|
||||
#mail-index_mailPreview .et2_email>span{
|
||||
display: inline;
|
||||
}
|
||||
.maildisplayAllAdresses {
|
||||
max-height: 245px !important;
|
||||
overflow:scroll;
|
||||
|
@ -450,6 +450,9 @@ div.mail-compose_fileselector {
|
||||
position: relative;
|
||||
background-color: white;
|
||||
}
|
||||
#mail-index_mailPreview .et2_email > span {
|
||||
display: inline;
|
||||
}
|
||||
.maildisplayAllAdresses {
|
||||
max-height: 245px !important;
|
||||
overflow: scroll;
|
||||
|
Loading…
Reference in New Issue
Block a user