Fix hiding of tag related UI elements when kolab_tags plugin is not enabled
This commit is contained in:
parent
6ba9838467
commit
c602c002c6
2 changed files with 13 additions and 5 deletions
|
@ -770,9 +770,13 @@ function rcube_kolab_notes_ui(settings)
|
|||
is_html = false;
|
||||
|
||||
// tag-edit line
|
||||
var tagline = $('.tagline', titlecontainer);
|
||||
if (window.kolab_tags_input) {
|
||||
$('.tagline', titlecontainer).parent('.form-group').show();
|
||||
taglist = kolab_tags_input($('.tagline', titlecontainer), data.tags, readonly);
|
||||
tagline.parent('.form-group').show();
|
||||
taglist = kolab_tags_input(tagline, data.tags, readonly);
|
||||
}
|
||||
else {
|
||||
tagline.parent('.form-group').hide();
|
||||
}
|
||||
|
||||
$('.notetitle', titlecontainer).val(data.title).prop('disabled', readonly).show();
|
||||
|
|
|
@ -2398,8 +2398,8 @@ function rcube_tasklist_ui(settings)
|
|||
function task_edit_dialog(id, action, presets)
|
||||
{
|
||||
var elastic = false, infodialog = $('#taskshow');
|
||||
if (infodialog.data('nodialog') || $('#taskedit').data('nodialog')) {
|
||||
|
||||
if (infodialog.data('nodialog') || $('#taskedit').data('nodialog')) {
|
||||
elastic = true;
|
||||
infodialog.addClass('hidden').parent().addClass('watermark'); // Elastic
|
||||
}
|
||||
|
@ -2479,9 +2479,13 @@ function rcube_tasklist_ui(settings)
|
|||
tasklist.val(rec.list || me.selected_list || selected_list);
|
||||
|
||||
// tag-edit line
|
||||
var tagline = $('#taskedit-tagline');
|
||||
if (window.kolab_tags_input) {
|
||||
$('#taskedit-tagline').parent('.form-group').show();
|
||||
taglist = kolab_tags_input($('#taskedit-tagline'), rec.tags, readonly);
|
||||
tagline.parent().show();
|
||||
taglist = kolab_tags_input(tagline, rec.tags, readonly);
|
||||
}
|
||||
else {
|
||||
tagline.parent().hide();
|
||||
}
|
||||
|
||||
// set alarm(s)
|
||||
|
|
Loading…
Add table
Reference in a new issue