|
|
@ -476,6 +476,7 @@ function rcube_elastic_ui()
|
|
|
|
.addEventListener('googiespell_create', rcmail_popup_init)
|
|
|
|
.addEventListener('googiespell_create', rcmail_popup_init)
|
|
|
|
.addEventListener('setquota', update_quota)
|
|
|
|
.addEventListener('setquota', update_quota)
|
|
|
|
.addEventListener('enable-command', enable_command_handler)
|
|
|
|
.addEventListener('enable-command', enable_command_handler)
|
|
|
|
|
|
|
|
.addEventListener('clonerow', pretty_checkbox_fix)
|
|
|
|
.addEventListener('init', init);
|
|
|
|
.addEventListener('init', init);
|
|
|
|
|
|
|
|
|
|
|
|
// Add styling for TinyMCE editor popups
|
|
|
|
// Add styling for TinyMCE editor popups
|
|
|
@ -3429,6 +3430,19 @@ function rcube_elastic_ui()
|
|
|
|
.parent().append(label);
|
|
|
|
.parent().append(label);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Fix pretty checkbox input in a cloned element
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
function pretty_checkbox_fix(params)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var id, input = $(params.row).find('input[id^=icochk]');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (input.length) {
|
|
|
|
|
|
|
|
id = 'icochk' + (++env.checkboxes);
|
|
|
|
|
|
|
|
input.attr('id', id).next('label').attr('for', id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Make select dropdowns pretty
|
|
|
|
* Make select dropdowns pretty
|
|
|
|
* TODO: searching, optgroup, [multiple], iPhone/iPad
|
|
|
|
* TODO: searching, optgroup, [multiple], iPhone/iPad
|
|
|
|