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;
|
is_html = false;
|
||||||
|
|
||||||
// tag-edit line
|
// tag-edit line
|
||||||
|
var tagline = $('.tagline', titlecontainer);
|
||||||
if (window.kolab_tags_input) {
|
if (window.kolab_tags_input) {
|
||||||
$('.tagline', titlecontainer).parent('.form-group').show();
|
tagline.parent('.form-group').show();
|
||||||
taglist = kolab_tags_input($('.tagline', titlecontainer), data.tags, readonly);
|
taglist = kolab_tags_input(tagline, data.tags, readonly);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
tagline.parent('.form-group').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
$('.notetitle', titlecontainer).val(data.title).prop('disabled', readonly).show();
|
$('.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)
|
function task_edit_dialog(id, action, presets)
|
||||||
{
|
{
|
||||||
var elastic = false, infodialog = $('#taskshow');
|
var elastic = false, infodialog = $('#taskshow');
|
||||||
if (infodialog.data('nodialog') || $('#taskedit').data('nodialog')) {
|
|
||||||
|
|
||||||
|
if (infodialog.data('nodialog') || $('#taskedit').data('nodialog')) {
|
||||||
elastic = true;
|
elastic = true;
|
||||||
infodialog.addClass('hidden').parent().addClass('watermark'); // Elastic
|
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);
|
tasklist.val(rec.list || me.selected_list || selected_list);
|
||||||
|
|
||||||
// tag-edit line
|
// tag-edit line
|
||||||
|
var tagline = $('#taskedit-tagline');
|
||||||
if (window.kolab_tags_input) {
|
if (window.kolab_tags_input) {
|
||||||
$('#taskedit-tagline').parent('.form-group').show();
|
tagline.parent().show();
|
||||||
taglist = kolab_tags_input($('#taskedit-tagline'), rec.tags, readonly);
|
taglist = kolab_tags_input(tagline, rec.tags, readonly);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
tagline.parent().hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
// set alarm(s)
|
// set alarm(s)
|
||||||
|
|
Loading…
Add table
Reference in a new issue