summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-10-09 10:59:33 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-10-09 11:00:10 (GMT)
commit834e4f66782530d988e4a272557fb7e613f45c58 (patch)
tree3c27a0f74c8f1d295e499f324db5167ca6809356 /plugins
parent90fca5a85fa86d07d2cd45fa9f5d101524ae7962 (diff)
downloadroundcubemail-plugins-kolab-834e4f66782530d988e4a272557fb7e613f45c58.tar.gz
Show calendar/tasklist name in title attribute when potentially truncated in the list view
Diffstat (limited to 'plugins')
-rw-r--r--plugins/calendar/lib/calendar_ui.php4
-rw-r--r--plugins/tasklist/tasklist_ui.php4
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/calendar/lib/calendar_ui.php b/plugins/calendar/lib/calendar_ui.php
index bca725e..23a335a 100644
--- a/plugins/calendar/lib/calendar_ui.php
+++ b/plugins/calendar/lib/calendar_ui.php
@@ -198,6 +198,8 @@ class calendar_ui
$html_id = html_identifier($id);
$class = 'cal-' . asciiwords($id, true);
+ $listname = html_entity_decode($prop['name'], ENT_COMPAT, RCMAIL_CHARSET);
+ $title = strlen($listname) > 25 ? $listname : '';
if ($prop['readonly'])
$class .= ' readonly';
@@ -207,7 +209,7 @@ class calendar_ui
$li .= html::tag('li', array('id' => 'rcmlical' . $html_id, 'class' => $class),
html::tag('input', array('type' => 'checkbox', 'name' => '_cal[]', 'value' => $id, 'checked' => $prop['active']), '') .
html::span('handle', '&nbsp;') .
- html::span('calname', $prop['name']));
+ html::span(array('class' => 'calname', 'title' => $title), $prop['name']));
}
$this->rc->output->set_env('calendars', $jsenv);
diff --git a/plugins/tasklist/tasklist_ui.php b/plugins/tasklist/tasklist_ui.php
index 7df8bcc..66a7ab0 100644
--- a/plugins/tasklist/tasklist_ui.php
+++ b/plugins/tasklist/tasklist_ui.php
@@ -104,6 +104,8 @@ class tasklist_ui
$html_id = html_identifier($id);
$class = 'tasks-' . asciiwords($id, true);
+ $listname = html_entity_decode($prop['name'], ENT_COMPAT, RCMAIL_CHARSET);
+ $title = strlen($listname) > 25 ? $listname : '';
if (!$prop['editable'])
$class .= ' readonly';
@@ -113,7 +115,7 @@ class tasklist_ui
$li .= html::tag('li', array('id' => 'rcmlitasklist' . $html_id, 'class' => $class),
html::tag('input', array('type' => 'checkbox', 'name' => '_list[]', 'value' => $id, 'checked' => $prop['active'])) .
html::span('handle', '&nbsp;') .
- html::span('listname', $prop['name']));
+ html::span(array('class' => 'listname', 'title' => $title), $prop['name']));
}
$this->rc->output->set_env('tasklists', $jsenv);