| | |
| | | // @license http://creativecommons.org/publicdomain/zero/1.0/legalcode CC0 |
| | | |
| | | /** |
| | | * Roundcube functions for default skin interface |
| | | * |
| | |
| | | * by keeping credits to the original autors in the README file. |
| | | * See http://creativecommons.org/licenses/by-sa/3.0/ for details. |
| | | */ |
| | | |
| | | |
| | | function rcube_mail_ui() |
| | | { |
| | |
| | | config = popupconfig[id]; |
| | | if (obj.is(':visible') |
| | | && target.id != id+'link' |
| | | && target != obj.get(0) // check if scroll bar was clicked (#1489832) |
| | | && !config.toggle |
| | | && (!config.editable || !target_overlaps(target, obj.get(0))) |
| | | && (!config.sticky || !rcube_mouse_is_over(e, obj.get(0))) |
| | |
| | | |
| | | obj[show?'show':'hide'](); |
| | | |
| | | // hide drop-down elements on buggy browsers |
| | | if (bw.ie6 && config.overlap) { |
| | | $('select').css('visibility', show?'hidden':'inherit'); |
| | | $('select', obj).css('visibility', 'inherit'); |
| | | } |
| | | |
| | | return show; |
| | | } |
| | | |
| | |
| | | mbox = '*'; |
| | | mods = mods[mbox] ? mods[mbox] : mods['*']; |
| | | all = 'text'; |
| | | $('#s_scope_'+scope).attr('checked',true); |
| | | $('input:radio[name="s_scope"]').prop('checked', false).filter('#s_scope_'+scope).prop('checked', true); |
| | | } |
| | | else { |
| | | all = '*'; |
| | |
| | | |
| | | // set checkboxes |
| | | $('input[name="list_col[]"]').each(function() { |
| | | $(this).prop('checked', $.inArray(this.value, rcmail.env.coltypes) != -1); |
| | | $(this).prop('checked', $.inArray(this.value, rcmail.env.listcols) != -1); |
| | | }); |
| | | |
| | | $dialog.dialog({ |
| | |
| | | m[elem.value] = 1; |
| | | |
| | | // mark all fields |
| | | if (elem.value != all) |
| | | return; |
| | | if (elem.value == all) { |
| | | $('input:checkbox[name="s_mods[]"]').map(function() { |
| | | if (this == elem) |
| | | return; |
| | | |
| | | $('input:checkbox[name="s_mods[]"]').map(function() { |
| | | if (this == elem) |
| | | return; |
| | | this.checked = true; |
| | | if (elem.checked) { |
| | | this.disabled = true; |
| | | delete m[this.value]; |
| | | } |
| | | else { |
| | | this.disabled = false; |
| | | m[this.value] = 1; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | this.checked = true; |
| | | if (elem.checked) { |
| | | this.disabled = true; |
| | | delete m[this.value]; |
| | | } |
| | | else { |
| | | this.disabled = false; |
| | | m[this.value] = 1; |
| | | } |
| | | }); |
| | | rcmail.set_searchmods(m); |
| | | } |
| | | |
| | | function set_searchscope(elem) |
| | | { |
| | | rcmail.env.search_scope = elem.value; |
| | | rcmail.set_searchscope(elem.value); |
| | | } |
| | | |
| | | function push_contactgroup(p) |
| | |
| | | { |
| | | return rcube_splitter._instances[id]; |
| | | }; |
| | | |
| | | // @license-end |