From a5c9fd11aca47324bbab72cd720594e5d0912c5a Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 05 Mar 2013 03:04:57 -0500
Subject: [PATCH] Small CS improvements

---
 program/js/app.js |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 81439bb..4011fa5 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -595,11 +595,12 @@
 
       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 @@
 
       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':

--
Gitblit v1.9.1