Elastic: Some improvements in Tasks
This commit is contained in:
parent
563262d110
commit
f35d4fc14f
6 changed files with 38 additions and 15 deletions
|
@ -337,7 +337,7 @@ html.touch #tasklist {
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
display: block;
|
display: block;
|
||||||
white-space: pre;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
|
|
@ -390,8 +390,23 @@ button.btn.print:before {
|
||||||
padding: .5em 1em;
|
padding: .5em 1em;
|
||||||
background-color: @color-black-shade-bg;
|
background-color: @color-black-shade-bg;
|
||||||
|
|
||||||
|
button {
|
||||||
|
margin-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
.prop {
|
.prop {
|
||||||
margin-left: .5rem;
|
margin-left: .5rem;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
|
||||||
|
label {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
label:before {
|
||||||
|
line-height: 1.25;
|
||||||
|
margin-right: .25rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
|
|
|
@ -102,6 +102,7 @@ $labels['import'] = 'Import';
|
||||||
$labels['importtasks'] = 'Import Tasks';
|
$labels['importtasks'] = 'Import Tasks';
|
||||||
$labels['viewactions'] = 'View actions';
|
$labels['viewactions'] = 'View actions';
|
||||||
$labels['focusview'] = 'View only this list';
|
$labels['focusview'] = 'View only this list';
|
||||||
|
$labels['activate'] = 'Activate';
|
||||||
|
|
||||||
// date words
|
// date words
|
||||||
$labels['on'] = 'on';
|
$labels['on'] = 'on';
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="print-config">
|
<div class="print-config">
|
||||||
<button class="btn btn-primary print" onclick="window.print()"><roundcube:label name='print' /></button>
|
<button class="btn btn-primary print" onclick="window.print()"><roundcube:label name='print' /></button>
|
||||||
<span class="prop">
|
<span class="prop">
|
||||||
<input type="checkbox" id="propdescription" checked="checked" onclick="$('#tasklist .description')[this.checked ? 'show' : 'hide']()" />
|
<input type="checkbox" id="propdescription" checked="checked" class="pretty-checkbox" onclick="$('#tasklist .description')[this.checked ? 'show' : 'hide']()" />
|
||||||
<label for="propdescription"><roundcube:label name="tasklist.printdescriptions" /></label>
|
<label for="propdescription"><roundcube:label name="tasklist.printdescriptions" /></label>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1685,7 +1685,7 @@ function rcube_tasklist_ui(settings)
|
||||||
if (!task_draghelper)
|
if (!task_draghelper)
|
||||||
task_draghelper = $('<div id="rcmdraglayer" class="taskitem-draghelper">');
|
task_draghelper = $('<div id="rcmdraglayer" class="taskitem-draghelper">');
|
||||||
|
|
||||||
var title = $(e.target).parents('li').first().find('.title').text();
|
var title = $(e.target).parents('li').first().find('.title:first').text();
|
||||||
|
|
||||||
task_draghelper.html(Q(title) || '✔');
|
task_draghelper.html(Q(title) || '✔');
|
||||||
|
|
||||||
|
@ -2573,7 +2573,7 @@ function rcube_tasklist_ui(settings)
|
||||||
|
|
||||||
// activate the first tab
|
// activate the first tab
|
||||||
$('#taskedit:not([data-notabs])').tabs('option', 'active', 0); // Larry
|
$('#taskedit:not([data-notabs])').tabs('option', 'active', 0); // Larry
|
||||||
if (elastic && $.tab)
|
if ($('#taskedit').data('notabs'))
|
||||||
$('#taskedit li.nav-item:first-child a').tab('show'); // Elastic
|
$('#taskedit li.nav-item:first-child a').tab('show'); // Elastic
|
||||||
|
|
||||||
// define dialog buttons
|
// define dialog buttons
|
||||||
|
@ -2722,12 +2722,12 @@ function rcube_tasklist_ui(settings)
|
||||||
me.dialog_resize($dialog.get(0), $dialog.height(), 580);
|
me.dialog_resize($dialog.get(0), $dialog.height(), 580);
|
||||||
}
|
}
|
||||||
|
|
||||||
title.select();
|
|
||||||
|
|
||||||
// Elastic
|
// Elastic
|
||||||
editform.removeClass('hidden').parents('.watermark').addClass('formcontainer');
|
editform.removeClass('hidden').parents('.watermark').addClass('formcontainer');
|
||||||
$('#taskedit').parent().trigger('loaded');
|
$('#taskedit').parent().trigger('loaded');
|
||||||
|
|
||||||
|
title.select();
|
||||||
|
|
||||||
// show nav buttons on mobile (elastic)
|
// show nav buttons on mobile (elastic)
|
||||||
$('.content-frame-navigation > .buttons > :not(.disabled)').show();
|
$('.content-frame-navigation > .buttons > :not(.disabled)').show();
|
||||||
}
|
}
|
||||||
|
|
|
@ -267,14 +267,21 @@ class tasklist_ui
|
||||||
|
|
||||||
if (!$activeonly || $prop['active']) {
|
if (!$activeonly || $prop['active']) {
|
||||||
$label_id = 'tl:' . $id;
|
$label_id = 'tl:' . $id;
|
||||||
|
$chbox = html::tag('input', array(
|
||||||
|
'type' => 'checkbox',
|
||||||
|
'name' => '_list[]',
|
||||||
|
'value' => $id,
|
||||||
|
'checked' => $prop['active'],
|
||||||
|
'title' => $this->plugin->gettext('activate'),
|
||||||
|
'aria-labelledby' => $label_id
|
||||||
|
));
|
||||||
|
|
||||||
return html::div(join(' ', $classes),
|
return html::div(join(' ', $classes),
|
||||||
html::a(array('class' => 'listname', 'title' => $title, 'href' => '#', 'id' => $label_id), $prop['listname'] ?: $prop['name']) .
|
html::a(array('class' => 'listname', 'title' => $title, 'href' => '#', 'id' => $label_id), $prop['listname'] ?: $prop['name']) .
|
||||||
($prop['virtual'] ? '' :
|
($prop['virtual'] ? '' : $chbox . html::span('actions',
|
||||||
html::tag('input', array('type' => 'checkbox', 'name' => '_list[]', 'value' => $id, 'checked' => $prop['active'], 'aria-labelledby' => $label_id)) .
|
($prop['removable'] ? html::a(array('href' => '#', 'class' => 'remove', 'title' => $this->plugin->gettext('removelist')), ' ') : '')
|
||||||
html::span('actions',
|
. html::a(array('href' => '#', 'class' => 'quickview', 'title' => $this->plugin->gettext('focusview'), 'role' => 'checkbox', 'aria-checked' => 'false'), ' ')
|
||||||
($prop['removable'] ? html::a(array('href' => '#', 'class' => 'remove', 'title' => $this->plugin->gettext('removelist')), ' ') : '') .
|
. (isset($prop['subscribed']) ? html::a(array('href' => '#', 'class' => 'subscribed', 'title' => $this->plugin->gettext('tasklistsubscribe'), 'role' => 'checkbox', 'aria-checked' => $prop['subscribed'] ? 'true' : 'false'), ' ') : '')
|
||||||
html::a(array('href' => '#', 'class' => 'quickview', 'title' => $this->plugin->gettext('focusview'), 'role' => 'checkbox', 'aria-checked' => 'false'), ' ') .
|
|
||||||
(isset($prop['subscribed']) ? html::a(array('href' => '#', 'class' => 'subscribed', 'title' => $this->plugin->gettext('tasklistsubscribe'), 'role' => 'checkbox', 'aria-checked' => $prop['subscribed'] ? 'true' : 'false'), ' ') : '')
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue