diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-29 19:27:26 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-29 19:27:26 +0000 |
| commit | 825b67562553bd2bc96cbaf69ec5322b7da721a8 (patch) | |
| tree | 5e86df615b2cc1bbb3041edac8b64eeb093a9d40 /roundcubemail/program/js/app.js | |
| parent | 942c342e6debd8114ab9ff8c704b771feb44a7fd (diff) | |
- Improved compose screen: resizable body and attachments list, vertical splitter, options menu
- Removed productname/version element, changed footer size to 20px
git-svn-id: https://svn.roundcube.net/trunk@3789 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 4c0e1841f..4f2ef85e8 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -225,7 +225,7 @@ function rcube_webmail() } } else if (this.env.action == 'compose') { - this.enable_command('add-attachment', 'send-attachment', 'remove-attachment', 'send', true); + this.enable_command('send-attachment', 'remove-attachment', 'send', true); if (this.env.spellcheck) { this.env.spellcheck.spelling_state_observer = function(s){ ref.set_spellcheck_state(s); }; @@ -872,9 +872,6 @@ function rcube_webmail() clearTimeout(this.request_timer); break; - case 'add-attachment': - this.show_attachment_form(true); - case 'send-attachment': // Reset the auto-save timer self.clearTimeout(this.save_timer); @@ -3068,32 +3065,6 @@ function rcube_webmail() return true; }; - this.show_attachment_form = function(a) - { - if (!this.gui_objects.uploadbox) - return false; - - var elm, list; - if (elm = this.gui_objects.uploadbox) { - if (a && (list = this.gui_objects.attachmentlist)) { - var pos = $(list).offset(); - elm.style.top = (pos.top + list.offsetHeight + 10) + 'px'; - elm.style.left = pos.left + 'px'; - } - - $(elm).toggle(); - } - - // clear upload form - try { - if (!a && this.gui_objects.attachmentform != this.gui_objects.messageform) - this.gui_objects.attachmentform.reset(); - } - catch(e){} // ignore errors - - return true; - }; - // upload attachment file this.upload_file = function(form) { @@ -3156,8 +3127,6 @@ function rcube_webmail() form.setAttribute('enctype', 'multipart/form-data'); form.submit(); - // hide upload form - this.show_attachment_form(false); // display upload indicator and cancel button var content = this.get_label('uploading'); if (this.env.loadingicon) |
