From 0bc51d9d0f8a36f4e0aa1d80ed019c958e233c16 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 30 Sep 2010 09:38:21 -0400
Subject: [PATCH] - Fix: contact group input is empty when using rename action more than once on the same group record

---
 program/js/app.js |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index e3ad4b0..f4ec7f3 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3635,7 +3635,6 @@
     }
   };
 
-
   this.delete_contacts = function()
   {
     // exit if no mailbox specified or if selection is empty
@@ -3725,7 +3724,6 @@
 
     this.enable_command('export', (this.contact_list.rowcount > 0));
   };
-
 
   this.group_create = function()
   {
@@ -3860,7 +3858,7 @@
     if (li && (link = li.firstChild) && link.tagName.toLowerCase() == 'a')
       link.innerHTML = prop.name;
 
-    this.env.contactfolders[key].name = this.env.contactgroups[key].name = name;
+    this.env.contactfolders[key].name = this.env.contactgroups[key].name = prop.name;
     this.triggerEvent('group_update', { id:prop.id, source:prop.source, name:prop.name, li:li[0] });
   };
 

--
Gitblit v1.9.1