From a5c9fd11aca47324bbab72cd720594e5d0912c5a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 5 Mar 2013 09:04:57 +0100 Subject: Small CS improvements --- program/js/app.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 81439bb81..4011fa593 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -595,11 +595,12 @@ function rcube_webmail() case 'extwin': if (this.env.action == 'compose') { - var prevstate = this.env.compose_extwin; - $("input[name='_action']", this.gui_objects.messageform).val('compose'); - this.gui_objects.messageform.action = this.url('mail/compose', { _id: this.env.compose_id, _extwin: 1 }); - this.gui_objects.messageform.target = this.open_window('', 1100, 900); - this.gui_objects.messageform.submit(); + var form = this.gui_objects.messageform; + + $("input[name='_action']", form).val('compose'); + form.action = this.url('mail/compose', { _id: this.env.compose_id, _extwin: 1 }); + form.target = this.open_window('', 1100, 900); + form.submit(); } else { this.open_window(this.env.permaurl, 900, 900); @@ -879,7 +880,7 @@ function rcube_webmail() case 'nextmessage': if (this.env.next_uid) - this.show_message(this.env.next_uid, false, this.env.action=='preview'); + this.show_message(this.env.next_uid, false, this.env.action == 'preview'); break; case 'lastmessage': -- cgit v1.2.3