summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-05 09:04:57 +0100
committerAleksander Machniak <alec@alec.pl>2013-03-05 09:04:57 +0100
commita5c9fd11aca47324bbab72cd720594e5d0912c5a (patch)
tree61ed54e5d4db8aec920d7ab0679084775afa7d9f /program
parent879b2331e11ff90030c514aa5eb1459004ff14c3 (diff)
Small CS improvements
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js13
1 files 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':