| | |
| | | |
| | | this.show_contentframe = function(show) |
| | | { |
| | | var frm; |
| | | var frm, win; |
| | | if (this.env.contentframe && (frm = $('#'+this.env.contentframe)) && frm.length) { |
| | | 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; |
| | | if (!show && (win = window.frames[this.env.contentframe])) { |
| | | if (win.location && win.location.href.indexOf(this.env.blankpage)<0) |
| | | win.location.href = this.env.blankpage; |
| | | } |
| | | else if (!bw.safari && !bw.konq) |
| | | frm[show ? 'show' : 'hide'](); |
| | |
| | | this.name_input_li.insertAfter(li); |
| | | } |
| | | |
| | | this.name_input.select(); |
| | | this.name_input.select().focus(); |
| | | }; |
| | | |
| | | this.group_rename = function() |
| | |
| | | } |
| | | } |
| | | |
| | | this.name_input.select(); |
| | | this.name_input.select().focus(); |
| | | }; |
| | | |
| | | this.group_delete = function() |
| | |
| | | if (action=='edit-identity' && (!id || id==this.env.iid)) |
| | | return false; |
| | | |
| | | var add_url = '', target = window; |
| | | var add_url = '', target = window; |
| | | |
| | | if (this.env.contentframe && window.frames && window.frames[this.env.contentframe]) { |
| | | add_url = '&_framed=1'; |
| | |
| | | |
| | | reg = new RegExp('['+RegExp.escape(this.env.delimiter)+']?[^'+RegExp.escape(this.env.delimiter)+']+$'); |
| | | this.name_input.__parent = this.env.subscriptionrows[id][0].replace(reg, ''); |
| | | this.name_input.onkeypress = function(e){ rcmail.name_input_keypress(e); }; |
| | | this.name_input.onkeydown = function(e){ rcmail.name_input_keydown(e); }; |
| | | |
| | | row.cells[0].replaceChild(this.name_input, row.cells[0].firstChild); |
| | | this.edit_folder = id; |
| | |
| | | }; |
| | | |
| | | // handler for keyboard events on the input field |
| | | this.name_input_keypress = function(e) |
| | | this.name_input_keydown = function(e) |
| | | { |
| | | var key = rcube_event.get_keycode(e); |
| | | |