|
|
@ -2967,7 +2967,7 @@ function rcube_webmail()
|
|
|
|
r.parent_uid = 0;
|
|
|
|
r.parent_uid = 0;
|
|
|
|
if (r.has_children) {
|
|
|
|
if (r.has_children) {
|
|
|
|
// replace 'leaf' with 'collapsed'
|
|
|
|
// replace 'leaf' with 'collapsed'
|
|
|
|
$('#'+r.id+' .leaf:first')
|
|
|
|
$('#' + r.id + ' .leaf').first()
|
|
|
|
.attr('id', 'rcmexpando' + r.id)
|
|
|
|
.attr('id', 'rcmexpando' + r.id)
|
|
|
|
.attr('class', (r.obj.style.display != 'none' ? 'expanded' : 'collapsed'))
|
|
|
|
.attr('class', (r.obj.style.display != 'none' ? 'expanded' : 'collapsed'))
|
|
|
|
.mousedown({uid: r.uid}, function(e) {
|
|
|
|
.mousedown({uid: r.uid}, function(e) {
|
|
|
@ -4327,7 +4327,7 @@ function rcube_webmail()
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
content = $('<ul class="proplist">').append(nodes);
|
|
|
|
content = $('<ul class="proplist">').append(nodes);
|
|
|
|
$('input:not([disabled]):first', content).attr('checked', true);
|
|
|
|
$('input:not([disabled])', content).first().attr('checked', true);
|
|
|
|
|
|
|
|
|
|
|
|
this.simple_dialog(content, this.get_label('markallread'),
|
|
|
|
this.simple_dialog(content, this.get_label('markallread'),
|
|
|
|
function() {
|
|
|
|
function() {
|
|
|
@ -5697,7 +5697,7 @@ function rcube_webmail()
|
|
|
|
if (this.import_dialog) {
|
|
|
|
if (this.import_dialog) {
|
|
|
|
this.import_state = state;
|
|
|
|
this.import_state = state;
|
|
|
|
// activate Import button depending on state
|
|
|
|
// activate Import button depending on state
|
|
|
|
$(this.import_dialog).parent().find('.ui-dialog-buttonset > button:first').attr('disabled', state != 'error');
|
|
|
|
$(this.import_dialog).parent().find('.ui-dialog-buttonset > button').first().attr('disabled', state != 'error');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -5985,7 +5985,7 @@ function rcube_webmail()
|
|
|
|
|
|
|
|
|
|
|
|
// select the first
|
|
|
|
// select the first
|
|
|
|
if (!this.env.contacts.length) {
|
|
|
|
if (!this.env.contacts.length) {
|
|
|
|
this.ksearch_select($('li:first', ul).get(0));
|
|
|
|
this.ksearch_select($('li', ul)[0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -6925,7 +6925,7 @@ function rcube_webmail()
|
|
|
|
row.appendTo(appendcontainer.show());
|
|
|
|
row.appendTo(appendcontainer.show());
|
|
|
|
|
|
|
|
|
|
|
|
if (input.is('div'))
|
|
|
|
if (input.is('div'))
|
|
|
|
input.find('input:first').focus();
|
|
|
|
input.find('input').first().focus();
|
|
|
|
else
|
|
|
|
else
|
|
|
|
input.first().focus();
|
|
|
|
input.first().focus();
|
|
|
|
|
|
|
|
|
|
|
@ -7424,10 +7424,10 @@ function rcube_webmail()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// set folder name
|
|
|
|
// set folder name
|
|
|
|
$('a:first', row).text(display_name).removeAttr('title');
|
|
|
|
$('a', row).first().text(display_name).removeAttr('title');
|
|
|
|
|
|
|
|
|
|
|
|
// update subscription checkbox
|
|
|
|
// update subscription checkbox
|
|
|
|
$('input[name="_subscribed[]"]:first', row).val(id)
|
|
|
|
$('input[name="_subscribed[]"]', row).first().val(id)
|
|
|
|
.prop({checked: subscribed ? true : false, disabled: is_protected ? true : false});
|
|
|
|
.prop({checked: subscribed ? true : false, disabled: is_protected ? true : false});
|
|
|
|
|
|
|
|
|
|
|
|
// add to folder/row-ID map
|
|
|
|
// add to folder/row-ID map
|
|
|
@ -7517,7 +7517,7 @@ function rcube_webmail()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (parent && n == parent) {
|
|
|
|
if (parent && n == parent) {
|
|
|
|
$('ul:first', parent).append(row);
|
|
|
|
$('ul', parent).first().append(row);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
while (p = $(n).parent().parent().get(0)) {
|
|
|
|
while (p = $(n).parent().parent().get(0)) {
|
|
|
@ -7578,7 +7578,7 @@ function rcube_webmail()
|
|
|
|
old_folder = this.env.subscriptionrows[oldid],
|
|
|
|
old_folder = this.env.subscriptionrows[oldid],
|
|
|
|
prefix_len_id = oldid.length,
|
|
|
|
prefix_len_id = oldid.length,
|
|
|
|
prefix_len_name = old_folder[0].length,
|
|
|
|
prefix_len_name = old_folder[0].length,
|
|
|
|
subscribed = $('input[name="_subscribed[]"]:first', row).prop('checked');
|
|
|
|
subscribed = $('input[name="_subscribed[]"]', row).first().prop('checked');
|
|
|
|
|
|
|
|
|
|
|
|
// no renaming, only update class_name
|
|
|
|
// no renaming, only update class_name
|
|
|
|
if (oldid == id) {
|
|
|
|
if (oldid == id) {
|
|
|
@ -7593,7 +7593,7 @@ function rcube_webmail()
|
|
|
|
newid = id + fname.slice(prefix_len_id);
|
|
|
|
newid = id + fname.slice(prefix_len_id);
|
|
|
|
|
|
|
|
|
|
|
|
this.id = 'rcmli' + ref.html_identifier_encode(newid);
|
|
|
|
this.id = 'rcmli' + ref.html_identifier_encode(newid);
|
|
|
|
$('input[name="_subscribed[]"]:first', this).val(newid);
|
|
|
|
$('input[name="_subscribed[]"]', this).first().val(newid);
|
|
|
|
folder[0] = name + folder[0].slice(prefix_len_name);
|
|
|
|
folder[0] = name + folder[0].slice(prefix_len_name);
|
|
|
|
|
|
|
|
|
|
|
|
subfolders[newid] = folder;
|
|
|
|
subfolders[newid] = folder;
|
|
|
@ -7678,7 +7678,7 @@ function rcube_webmail()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var row = this.subscription_list.get_item(folder, true);
|
|
|
|
var row = this.subscription_list.get_item(folder, true);
|
|
|
|
if (row)
|
|
|
|
if (row)
|
|
|
|
$('input[name="_subscribed[]"]:first', row).prop('disabled', true);
|
|
|
|
$('input[name="_subscribed[]"]', row).first().prop('disabled', true);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// resets state of subscription checkbox (e.g. on error)
|
|
|
|
// resets state of subscription checkbox (e.g. on error)
|
|
|
@ -7686,7 +7686,7 @@ function rcube_webmail()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var row = this.subscription_list.get_item(folder, true);
|
|
|
|
var row = this.subscription_list.get_item(folder, true);
|
|
|
|
if (row)
|
|
|
|
if (row)
|
|
|
|
$('input[name="_subscribed[]"]:first', row).prop('checked', state);
|
|
|
|
$('input[name="_subscribed[]"]', row).first().prop('checked', state);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
this.folder_size = function(folder)
|
|
|
|
this.folder_size = function(folder)
|
|
|
|