Fix some linting errors
This commit is contained in:
parent
0b17f376a8
commit
801d358824
4 changed files with 7 additions and 7 deletions
|
@ -38,7 +38,7 @@ function rcube_calendar_ui(settings)
|
||||||
this.selected_event = null;
|
this.selected_event = null;
|
||||||
this.selected_calendar = null;
|
this.selected_calendar = null;
|
||||||
this.search_request = null;
|
this.search_request = null;
|
||||||
this.saving_lock;
|
this.saving_lock = null;
|
||||||
this.calendars = {};
|
this.calendars = {};
|
||||||
this.quickview_sources = [];
|
this.quickview_sources = [];
|
||||||
|
|
||||||
|
|
|
@ -2177,7 +2177,7 @@ function kolab_files_ui()
|
||||||
{
|
{
|
||||||
return $('<a>').attr({
|
return $('<a>').attr({
|
||||||
title: rcmail.gettext('kolab_files.listpermanent'),
|
title: rcmail.gettext('kolab_files.listpermanent'),
|
||||||
class: 'subscription' + (subscribed ? ' subscribed' : ''),
|
'class': 'subscription' + (subscribed ? ' subscribed' : ''),
|
||||||
'aria-checked': subscribed,
|
'aria-checked': subscribed,
|
||||||
role: 'checkbox'
|
role: 'checkbox'
|
||||||
});
|
});
|
||||||
|
|
|
@ -122,7 +122,7 @@ function rcube_kolab_notes_ui(settings)
|
||||||
rcmail.enable_command('createnote', has_permission(me.notebooks[id], 'i'));
|
rcmail.enable_command('createnote', has_permission(me.notebooks[id], 'i'));
|
||||||
rcmail.enable_command('list-edit', has_permission(me.notebooks[id], 'a'));
|
rcmail.enable_command('list-edit', has_permission(me.notebooks[id], 'a'));
|
||||||
rcmail.enable_command('list-delete', has_permission(me.notebooks[id], 'xa'));
|
rcmail.enable_command('list-delete', has_permission(me.notebooks[id], 'xa'));
|
||||||
rcmail.enable_command('list-remove', !me.notebooks[id].default);
|
rcmail.enable_command('list-remove', !me.notebooks[id]['default']);
|
||||||
fetch_notes(id); // sets me.selected_list
|
fetch_notes(id); // sets me.selected_list
|
||||||
},
|
},
|
||||||
function(){
|
function(){
|
||||||
|
@ -142,7 +142,7 @@ function rcube_kolab_notes_ui(settings)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
notebookslist.addEventListener('remove', function(p) {
|
notebookslist.addEventListener('remove', function(p) {
|
||||||
if (me.notebooks[p.id] && !me.notebooks[p.id].default) {
|
if (me.notebooks[p.id] && !me.notebooks[p.id]['default']) {
|
||||||
list_remove(p.id);
|
list_remove(p.id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -106,8 +106,8 @@ function rcube_tasklist_ui(settings)
|
||||||
|
|
||||||
/* public members */
|
/* public members */
|
||||||
this.tasklists = rcmail.env.tasklists;
|
this.tasklists = rcmail.env.tasklists;
|
||||||
this.selected_task;
|
this.selected_task = null;
|
||||||
this.selected_list;
|
this.selected_list = null;
|
||||||
|
|
||||||
/* public methods */
|
/* public methods */
|
||||||
this.init = init;
|
this.init = init;
|
||||||
|
@ -150,7 +150,7 @@ function rcube_tasklist_ui(settings)
|
||||||
me.selected_list = settings.selected_list;
|
me.selected_list = settings.selected_list;
|
||||||
$(rcmail.gui_objects.tasklistslist).find("input[value='"+settings.selected_list+"']").prop('checked', true);
|
$(rcmail.gui_objects.tasklistslist).find("input[value='"+settings.selected_list+"']").prop('checked', true);
|
||||||
}
|
}
|
||||||
if (me.tasklists[id].editable && (!me.selected_list || me.tasklists[id].default || (me.tasklists[id].active && !me.tasklists[me.selected_list].active))) {
|
if (me.tasklists[id].editable && (!me.selected_list || me.tasklists[id]['default'] || (me.tasklists[id].active && !me.tasklists[me.selected_list].active))) {
|
||||||
me.selected_list = id;
|
me.selected_list = id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue