Add icons for selectable listings, other fixes

pull/5742/merge
Aleksander Machniak 8 years ago
parent ef89af3248
commit 642e2a47a9

@ -165,6 +165,13 @@ a.rcmaddcontact:before,
content: @fa-var-lock; content: @fa-var-lock;
} }
.listing.iconized.selectable li a:before {
content: "";
}
.listing.iconized.selectable li a.selected:before {
content: @fa-var-check;
}
.folderlist li a:before { .folderlist li a:before {
content: @fa-var-folder-o; content: @fa-var-folder-o;
} }

@ -12,7 +12,7 @@
label="contactsearchform" buttontitle="findcontacts" options="search-menu" ariatag="h2" /> label="contactsearchform" buttontitle="findcontacts" options="search-menu" ariatag="h2" />
</div> </div>
<div class="scroller" tabindex="-1"> <div class="scroller" tabindex="-1">
<roundcube:object name="addressbooks" id="directorylist" class="treelist listing" <roundcube:object name="addressbooks" id="directorylist" class="treelist listing iconized"
summary="ariasummarycomposecontacts" /> summary="ariasummarycomposecontacts" />
<roundcube:object name="addresslist" id="contacts-table" class="listing iconized" <roundcube:object name="addresslist" id="contacts-table" class="listing iconized"
noheader="true" role="listbox" /> noheader="true" role="listbox" />

@ -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">');

Loading…
Cancel
Save