|
|
@ -805,14 +805,14 @@ function rcube_elastic_ui()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var n, all,
|
|
|
|
var n, all,
|
|
|
|
list = $('input[name="s_mods[]"]', obj),
|
|
|
|
list = $('input[name="s_mods[]"]', obj),
|
|
|
|
scope = $('input[name="s_scope"]', obj),
|
|
|
|
scope_list = $('input[name="s_scope"]', obj),
|
|
|
|
mbox = rcmail.env.mailbox,
|
|
|
|
mbox = rcmail.env.mailbox,
|
|
|
|
mods = rcmail.env.search_mods,
|
|
|
|
mods = rcmail.env.search_mods,
|
|
|
|
scope = rcmail.env.search_scope || 'base';
|
|
|
|
scope = rcmail.env.search_scope || 'base';
|
|
|
|
|
|
|
|
|
|
|
|
if (!$(obj).data('initialized')) {
|
|
|
|
if (!$(obj).data('initialized')) {
|
|
|
|
list.on('click', function() { set_searchmod(this, obj); });
|
|
|
|
list.on('click', function() { set_searchmod(this, obj); });
|
|
|
|
scope.on('click', function() { rcmail.set_searchscope(this.value); });
|
|
|
|
scope_list.on('click', function() { rcmail.set_searchscope(this.value); });
|
|
|
|
$(obj).data('initialized', true);
|
|
|
|
$(obj).data('initialized', true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -824,7 +824,7 @@ function rcube_elastic_ui()
|
|
|
|
|
|
|
|
|
|
|
|
mods = mods[mbox] ? mods[mbox] : mods['*'];
|
|
|
|
mods = mods[mbox] ? mods[mbox] : mods['*'];
|
|
|
|
all = 'text';
|
|
|
|
all = 'text';
|
|
|
|
scope.prop('checked', false).filter('#s_scope_' + scope).prop('checked', true);
|
|
|
|
scope_list.prop('checked', false).filter('#s_scope_' + scope).prop('checked', true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
all = '*';
|
|
|
|
all = '*';
|
|
|
@ -912,7 +912,7 @@ function rcube_elastic_ui()
|
|
|
|
ul = $('ul', obj);
|
|
|
|
ul = $('ul', obj);
|
|
|
|
|
|
|
|
|
|
|
|
if (!ul.length) {
|
|
|
|
if (!ul.length) {
|
|
|
|
ul = $('<ul class="toolbarmenu selectable" role="menu">');
|
|
|
|
ul = $('<ul class="toolbarmenu selectable listing iconized" role="menu">');
|
|
|
|
|
|
|
|
|
|
|
|
for (i in rcmail.env.spell_langs) {
|
|
|
|
for (i in rcmail.env.spell_langs) {
|
|
|
|
li = $('<li role="menuitem">');
|
|
|
|
li = $('<li role="menuitem">');
|
|
|
|