diff --git a/plugins/kolab_delegation/kolab_delegation.js b/plugins/kolab_delegation/kolab_delegation.js
index c28d7d41..4ecaa51d 100644
--- a/plugins/kolab_delegation/kolab_delegation.js
+++ b/plugins/kolab_delegation/kolab_delegation.js
@@ -49,8 +49,8 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
if (rcmail.gui_objects.delegatelist) {
rcmail.delegatelist = new rcube_list_widget(rcmail.gui_objects.delegatelist,
{ multiselect:true, draggable:false, keyboard:true });
- rcmail.delegatelist.addEventListener('select', function(o) { rcmail.select_delegate(o); });
- rcmail.delegatelist.init();
+ rcmail.delegatelist.addEventListener('select', function(o) { rcmail.select_delegate(o); })
+ .init();
rcmail.enable_command('delegate-add', true);
}
@@ -77,14 +77,16 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
$('input.write', this.parentNode.parentNode).prop('checked', false);
});
- $('.foldersblock thead td img').click(function(e) {
- var $this = $(this),
- classname = $this.parent().get(0).className,
- list = $this.closest('table').find('input.'+classname),
+ var fn = function(elem) {
+ var classname = elem.className,
+ list = $(elem).closest('table').find('input.' + classname),
check = list.not(':checked').length > 0;
list.prop('checked', check).change();
- });
+ };
+
+ $('th.read,th.write').click(function() { fn(this); })
+ .keydown(function(e) { if (e.which == 13 || e.which == 32) fn(this); });
}
}
});
diff --git a/plugins/kolab_delegation/kolab_delegation.php b/plugins/kolab_delegation/kolab_delegation.php
index df58e927..f8974c62 100644
--- a/plugins/kolab_delegation/kolab_delegation.php
+++ b/plugins/kolab_delegation/kolab_delegation.php
@@ -497,8 +497,8 @@ class kolab_delegation extends rcube_plugin
$write_ico = $attrib['writeicon'] ? html::img(array('src' => $path . $attrib['writeicon'], 'title' => $this->gettext('write'))) : '';
$table = new html_table(array('cellspacing' => 0));
- $table->add_header(array('class' => 'read', 'title' => $this->gettext('read')), $read_ico);
- $table->add_header(array('class' => 'write', 'title' => $this->gettext('write')), $write_ico);
+ $table->add_header(array('class' => 'read', 'title' => $this->gettext('read'), 'tabindex' => 0), $read_ico);
+ $table->add_header(array('class' => 'write', 'title' => $this->gettext('write'), 'tabindex' => 0), $write_ico);
$table->add_header('foldername', $this->rc->gettext('folder'));
$checkbox_read = new html_checkbox(array('name' => 'read[]', 'class' => 'read'));
diff --git a/plugins/kolab_delegation/localization/en_US.inc b/plugins/kolab_delegation/localization/en_US.inc
index 825f0167..b3a0f10e 100644
--- a/plugins/kolab_delegation/localization/en_US.inc
+++ b/plugins/kolab_delegation/localization/en_US.inc
@@ -27,4 +27,7 @@ $labels['updateerror'] = 'Could not update delegate.';
$labels['createsuccess'] = 'The delegate was successfully added.';
$labels['createerror'] = 'Could not add delegate.';
+$labels['arialabeldelegatedelete'] = 'Delegate deletion dialog';
+$labels['arialabeldelegateform'] = 'Delegate properties form';
+
?>
diff --git a/plugins/kolab_delegation/package.xml b/plugins/kolab_delegation/package.xml
index d22b3f09..2b9d3d35 100644
--- a/plugins/kolab_delegation/package.xml
+++ b/plugins/kolab_delegation/package.xml
@@ -15,9 +15,9 @@
machniak@kolabsys.com
yes
- 2013-06-25
+ 2014-06-13
- 0.3
+ 0.4
0.1
diff --git a/plugins/kolab_delegation/skins/larry/style.css b/plugins/kolab_delegation/skins/larry/style.css
index 06aec7b5..d026d16c 100644
--- a/plugins/kolab_delegation/skins/larry/style.css
+++ b/plugins/kolab_delegation/skins/larry/style.css
@@ -115,10 +115,12 @@ div.foldersblock h3.note {
background: url(read.png) center no-repeat;
width: 18px;
height: 20px;
+ cursor: pointer;
}
.foldersblock th.write {
background: url(write.png) center no-repeat;
width: 18px;
height: 20px;
+ cursor: pointer;
}
diff --git a/plugins/kolab_delegation/skins/larry/templates/settings.html b/plugins/kolab_delegation/skins/larry/templates/settings.html
index b0842f2a..5f1b6831 100644
--- a/plugins/kolab_delegation/skins/larry/templates/settings.html
+++ b/plugins/kolab_delegation/skins/larry/templates/settings.html
@@ -10,11 +10,13 @@