summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-07-23 06:26:30 +0000
committeralecpl <alec@alec.pl>2009-07-23 06:26:30 +0000
commitc9e9fe1901631af76be85176434096de1df7f018 (patch)
tree2639c6fef6886f1515e4568690bf034f8f5ea1fc
parentf134ad8c4cc6ec06da7cd63ebc1eb9a767c0fb65 (diff)
- fix button tooltips on IE (#1485994)
-rwxr-xr-xprogram/include/rcube_template.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index 0947944ad..af5164f86 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -810,8 +810,8 @@ class rcube_template extends rcube_html_page
}
// set title to alt attribute for IE browsers
- if ($this->browser->ie && $attrib['title'] && !$attrib['alt']) {
- $attrib['alt'] = $attrib['title'];
+ if ($this->browser->ie && !$attrib['title'] && $attrib['alt']) {
+ $attrib['title'] = $attrib['alt'];
}
// add empty alt attribute for XHTML compatibility
@@ -893,16 +893,15 @@ class rcube_template extends rcube_html_page
$attrib_str = html::attrib_string(
$attrib,
array(
- 'style', 'class', 'id', 'width',
- 'height', 'border', 'hspace',
- 'vspace', 'align', 'alt', 'tabindex'
+ 'style', 'class', 'id', 'width', 'height', 'border', 'hspace',
+ 'vspace', 'align', 'alt', 'tabindex', 'title'
)
);
$btn_content = sprintf('<img src="%s"%s />', $this->abs_url($attrib['image']), $attrib_str);
if ($attrib['label']) {
$btn_content .= ' '.$attrib['label'];
}
- $link_attrib = array('href', 'onclick', 'onmouseover', 'onmouseout', 'onmousedown', 'onmouseup', 'title', 'target');
+ $link_attrib = array('href', 'onclick', 'onmouseover', 'onmouseout', 'onmousedown', 'onmouseup', 'target');
}
else if ($attrib['type']=='link') {
$btn_content = $attrib['label'] ? $attrib['label'] : $attrib['command'];
@@ -918,8 +917,7 @@ class rcube_template extends rcube_html_page
$attrib_str = html::attrib_string(
$attrib,
array(
- 'type', 'value', 'onclick',
- 'id', 'class', 'style', 'tabindex'
+ 'type', 'value', 'onclick', 'id', 'class', 'style', 'tabindex'
)
);
$out = sprintf('<input%s disabled="disabled" />', $attrib_str);