| | |
| | | var input_email = rcube_find_object('_email'); |
| | | |
| | | // user prefs |
| | | if (input_pagesize && isNaN(input_pagesize.value)) |
| | | if (input_pagesize && isNaN(parseInt(input_pagesize.value))) |
| | | { |
| | | alert(this.get_label('nopagesizewarning')); |
| | | input_pagesize.focus(); |
| | |
| | | var frm; |
| | | if (this.env.contentframe && (frm = rcube_find_object(this.env.contentframe))) |
| | | { |
| | | if (!show && window.frames[this.env.contentframe] && frames[this.env.contentframe].location.href.indexOf(this.env.blankpage)<0) |
| | | frames[this.env.contentframe].location.href = this.env.blankpage; |
| | | if (!bw.safari) |
| | | if (!show && window.frames[this.env.contentframe]) |
| | | { |
| | | if (window.frames[this.env.contentframe].location.href.indexOf(this.env.blankpage)<0) |
| | | window.frames[this.env.contentframe].location.href = this.env.blankpage; |
| | | } |
| | | else if (!bw.safari) |
| | | frm.style.display = show ? 'block' : 'none'; |
| | | } |
| | | |
| | |
| | | }; |
| | | |
| | | |
| | | // handler for mouse events on address-fields |
| | | this.ksearch_onmousemove = function(li) |
| | | { |
| | | var last = document.getElementById('rcmksearchSelected'); |
| | | if (last) |
| | | { |
| | | last.removeAttribute('id'); |
| | | this.set_classname(last, 'selected', false); |
| | | } |
| | | |
| | | li.setAttribute('id', 'rcmksearchSelected'); |
| | | this.set_classname(li, 'selected', true); |
| | | this.ksearch_selected = li._rcm_id; |
| | | }; |
| | | |
| | | |
| | | this.insert_recipient = function(id) |
| | | { |
| | | if (!this.env.contacts[id] || !this.ksearch_input) |
| | |
| | | cpos = p+insert.length; |
| | | if (this.ksearch_input.setSelectionRange) |
| | | this.ksearch_input.setSelectionRange(cpos, cpos); |
| | | |
| | | }; |
| | | |
| | | |
| | |
| | | { |
| | | li = document.createElement('LI'); |
| | | li.innerHTML = a_results[i].replace(/</, '<').replace(/>/, '>'); |
| | | li.onmousedown = function(e){ ref.insert_recipient(this._rcm_id); ref.ksearch_pane.show(0); return rcube_event.cancel(e); }; |
| | | li.onmouseover = function(e){ ref.ksearch_onmousemove(this); }; |
| | | li.style.cursor = 'pointer'; |
| | | li._rcm_id = a_result_ids[i]; |
| | | ul.appendChild(li); |
| | | } |
| | |
| | | qs += '&_search='+this.env.search_request; |
| | | |
| | | // send request to server |
| | | this.http_post('delete', '_cid='+urlencode(a_cids.join(','))+'&_from='+(this.env.action ? this.env.action : '')+qs); |
| | | this.http_post('delete', '_cid='+urlencode(a_cids.join(','))+'&_source='+urlencode(this.env.source)+'&_from='+(this.env.action ? this.env.action : '')+qs); |
| | | return true; |
| | | }; |
| | | |