diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-10-13 22:21:10 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-10-13 22:21:10 +0000 |
| commit | e31db3ed9472c5ac33e178bc7cd20ab8f97b37fa (patch) | |
| tree | cbfc82718a04b5e7347642a5234298b458b6c8aa /roundcubemail/program | |
| parent | 0493b56bbbe40f8831c10a5d030937d12230b9a7 (diff) | |
Fixed bug #1325050; added alt-texts for IE
git-svn-id: https://svn.roundcube.net/trunk@28 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/main.inc | 11 | ||||
| -rw-r--r-- | roundcubemail/program/js/app.js | 4 |
2 files changed, 13 insertions, 2 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index 2e5be7b0e..1c413bb80 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/program/include/main.inc @@ -671,7 +671,7 @@ function rcube_xml_command($command, $str_attrib, $a_attrib=NULL) // create and register a button function rcube_button($attrib) { - global $CONFIG, $OUTPUT, $JS_OBJECT_NAME; + global $CONFIG, $OUTPUT, $JS_OBJECT_NAME, $BROWSER; static $sa_buttons = array(); static $s_button_count = 100; @@ -728,7 +728,14 @@ function rcube_button($attrib) if ($attrib['alt']) $attrib['alt'] = rep_specialchars_output(rcube_label($attrib['alt'])); - + + // set title to alt attribute for IE browsers + if ($BROWSER['ie'] && $attrib['title'] && !$attrib['alt']) + { + $attrib['alt'] = $attrib['title']; + unset($attrib['title']); + } + // add empty alt attribute for XHTML compatibility if (!isset($attrib['alt'])) $attrib['alt'] = ''; diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 3837a3179..fb0c4556d 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -1802,6 +1802,10 @@ function rcube_webmail() } if (row.cells[2].firstChild.tagName=='A') row.cells[2].firstChild.onclick = new Function(this.ref+".command('delete-folder','"+name+"')"); + + var form; + if ((form = this.gui_objects.editform) && form.elements['_folder_name']) + form.elements['_folder_name'].value = ''; }; |
