From f645ce169e11339d45cbc0b5b4cf6154346fd4c7 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 15 Sep 2008 10:53:57 -0400
Subject: [PATCH] Redesign of the identities settings + add config option to disable multiple identities

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

diff --git a/program/js/app.js b/program/js/app.js
index d42b8ed..83b3972 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -295,8 +295,10 @@
       case 'settings':
         this.enable_command('preferences', 'identities', 'save', 'folders', true);
         
-        if (this.env.action=='identities' || this.env.action=='edit-identity' || this.env.action=='add-identity')
-          this.enable_command('edit', 'add', 'delete', true);
+        if (this.env.action=='identities' || this.env.action=='edit-identity' || this.env.action=='add-identity') {
+          this.enable_command('add', 'delete', this.env.multiple_identities);
+          this.enable_command('edit', true);
+        }
 
         if (this.env.action=='edit-identity' || this.env.action=='add-identity')
           this.enable_command('save', true);
@@ -3748,11 +3750,6 @@
     this.set_busy(false);
     document.getElementById(id).value = httpRequest.get_text();
     console.log(httpRequest.get_text());
-    }
-
-  this.handle_conv_error = function(httpRequest)
-    {
-    alert('html2text request returned with error ' + httpRequest.xmlhttp.status);
     }
 
 

--
Gitblit v1.9.1