| | |
| | | orientation:'h', relative:true, start:310, min:150, size:0, offset:-22 }); |
| | | if (previewframe) |
| | | mailviewsplit.init(); |
| | | |
| | | rcmail.addEventListener('setquota', update_quota); |
| | | } |
| | | |
| | | |
| | | if ($('#mailview-left').length) { |
| | | new rcube_splitter({ id:'mailviewsplitterv', p1:'#mailview-left', p2:'#mailview-right', |
| | | orientation:'v', relative:true, start:248, min:150, size:12, callback:render_mailboxlist, render:resize_leftcol }).init(); |
| | |
| | | new rcube_splitter({ id:'addressviewsplitter', p1:'#addresslist', p2:'#contacts-box', |
| | | orientation:'v', relative:true, start:296, min:220, size:12 }).init(); |
| | | } |
| | | |
| | | } |
| | | else if (rcmail.env.task == 'login') { |
| | | if (bw.ie && bw.vendver < 9) { |
| | | var popup = $('<div>') |
| | | .addClass('readtext') |
| | | .html("Roundcube will not work well with the crappy browser ya' using. Get yourself a new internet browsing software and don't come back without!<p>Sincerly,<br/>the Roundcube Dev Team</p>") |
| | | .appendTo(document.body) |
| | | .dialog({ |
| | | dialogClass: 'alert', |
| | | closeOnEscape: true, |
| | | title: "No way, are you serious?", |
| | | close: function() { |
| | | popup.dialog('destroy').remove(); |
| | | }, |
| | | width: 450 |
| | | }); |
| | | } |
| | | } |
| | | |
| | | // turn a group of fieldsets into tabs |
| | |
| | | else { |
| | | $('#googie_edit_layer').height(h+'px'); |
| | | } |
| | | } |
| | | |
| | | |
| | | function update_quota(p) |
| | | { |
| | | var y = p.total ? Math.ceil(p.percent / 100 * 20) * 24 : 0; |
| | | $('#quotadisplay').css('background-position', '0 -'+y+'px'); |
| | | } |
| | | |
| | | |
| | |
| | | $dialog.dialog('close'); |
| | | return; |
| | | } |
| | | |
| | | // add icons to clone file input field |
| | | if (rcmail.env.action == 'compose' && !$dialog.data('extended')) { |
| | | $('<a>') |
| | | .addClass('iconlink add') |
| | | .attr('href', '#add') |
| | | .html('Add') |
| | | .appendTo($('input[type="file"]', $dialog).parent()) |
| | | .click(add_uploadfile); |
| | | $dialog.data('extended', true); |
| | | } |
| | | |
| | | $dialog.dialog({ |
| | | modal: true, |
| | |
| | | catch(e){ } // ignore errors |
| | | |
| | | $dialog.dialog('destroy').hide(); |
| | | $('div.addline', $dialog).remove(); |
| | | }, |
| | | width: 480 |
| | | }).show(); |
| | | |
| | | if (!document.all) |
| | | $('input[type=file]', $dialog).click(); |
| | | $('input[type=file]', $dialog).first().click(); |
| | | } |
| | | |
| | | function add_uploadfile(e) |
| | | { |
| | | var div = $(this).parent(); |
| | | var clone = div.clone().addClass('addline').insertAfter(div); |
| | | clone.children('.iconlink').click(add_uploadfile); |
| | | clone.children('input').val(''); |
| | | |
| | | if (!document.all) |
| | | $('input[type=file]', clone).click(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * |
| | |
| | | this.handle.css('top', Math.round(this.pos - this.halfsize + this.offset)+'px'); |
| | | if (bw.ie) { |
| | | var new_height = parseInt(this.p2.parent().outerHeight(), 10) - parseInt(this.p2.css('top'), 10) - (bw.ie8 ? 2 : 0); |
| | | this.p2.css('height') = (new_height > 0 ? new_height : 0) + 'px'; |
| | | this.p2.css('height', (new_height > 0 ? new_height : 0) + 'px'); |
| | | } |
| | | } |
| | | else { |