thomascube
2005-10-13 14eafe4d89056b6a5bd383f15c2ca1de647f1d4e
Fixed bug #1325050; added alt-texts for IE


3 files modified
17 ■■■■ changed files
program/include/main.inc 11 ●●●● patch | view | raw | blame | history
program/js/app.js 4 ●●●● patch | view | raw | blame | history
skins/default/templates/managefolders.html 2 ●●● patch | view | raw | blame | history
program/include/main.inc
@@ -671,7 +671,7 @@
// 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 @@
  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'] = '';
program/js/app.js
@@ -1802,6 +1802,10 @@
       }
     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 = '';
     };
skins/default/templates/managefolders.html
@@ -10,7 +10,7 @@
<roundcube:include file="/includes/header.html" />
<roundcube:include file="/includes/settingstabs.html" />
<form name="subscriptionform" action="./">
<form name="subscriptionform" action="./" onsubmit="rcmail.command('create-folder');return false;">
<div id="folder-manager">
<roundcube:object name="foldersubscription" form="subscriptionform" id="subscription-table"