Skip to content

Commit

Permalink
Make "Add contact" image/text ignored when copying/selecting recipien…
Browse files Browse the repository at this point in the history
…ts in main headers (#5103)
  • Loading branch information
alecpl committed Nov 6, 2016
1 parent 386af48 commit c3e7d93
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
5 changes: 3 additions & 2 deletions program/steps/mail/func.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1675,8 +1675,9 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null,
rcmail_output::JS_OBJECT_NAME, rcube::JQ($string)),
),
html::img(array(
'src' => $RCMAIL->output->abs_url($addicon, true),
'alt' => "Add contact",
'src' => $RCMAIL->output->abs_url($addicon, true),
'alt' => "Add contact",
'class' => 'noselect',
)));
}
}
Expand Down
9 changes: 9 additions & 0 deletions skins/classic/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ img
display: none;
}

.noselect
{
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
}

/* fixes vertical alignment of checkboxes and labels */
label input,
label span
Expand Down
8 changes: 8 additions & 0 deletions skins/larry/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ label input + span {
vertical-align: middle;
}

.noselect {
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
}

/*** buttons ***/

input.button {
Expand Down

0 comments on commit c3e7d93

Please sign in to comment.