| | |
| | | } |
| | | } |
| | | |
| | | $('#composeoptionstoggle').click(function(){ |
| | | $('#composeoptionstoggle').click(function(e){ |
| | | $('#composeoptionstoggle').toggleClass('remove'); |
| | | $('#composeoptions').toggle(); |
| | | layout_composeview(); |
| | | save_pref('composeoptions', $('#composeoptions').is(':visible') ? '1' : '0'); |
| | | if (!rcube_event.is_keyboard(e)) |
| | | this.blur(); |
| | | return false; |
| | | }).css('cursor', 'pointer'); |
| | | |
| | |
| | | }); |
| | | } |
| | | |
| | | function show_uploadform() |
| | | function show_uploadform(e) |
| | | { |
| | | var $dialog = $('#upload-dialog'); |
| | | |
| | |
| | | resizable: false, |
| | | closeOnEscape: true, |
| | | title: $dialog.attr('title'), |
| | | open: function(e) { |
| | | if (!document.all) |
| | | $('input[type=file]', $dialog).first().click(); |
| | | }, |
| | | close: function() { |
| | | try { $('#upload-dialog form').get(0).reset(); } |
| | | catch(e){ } // ignore errors |
| | |
| | | }, |
| | | width: 480 |
| | | }).show(); |
| | | |
| | | if (!document.all) |
| | | $('input[type=file]', $dialog).first().click(); |
| | | } |
| | | |
| | | function add_uploadfile(e) |