From b175394b30266d82c56f085bcf9829231828db7c Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 23 Sep 2011 07:18:49 -0400
Subject: [PATCH] - Add loading indicator on contact delete

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

diff --git a/program/js/app.js b/program/js/app.js
index 26b9539..a209256 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4019,8 +4019,9 @@
   this.delete_contacts = function()
   {
     // exit if no mailbox specified or if selection is empty
-    var selection = this.contact_list.get_selection();
-    var undelete = this.env.address_sources[this.env.source].undelete;
+    var selection = this.contact_list.get_selection(),
+      undelete = this.env.address_sources[this.env.source].undelete;
+
     if (!(selection.length || this.env.cid) || (!undelete && !confirm(this.get_label('deletecontactconfirm'))))
       return;
 
@@ -4048,7 +4049,10 @@
       qs += '&_search='+this.env.search_request;
 
     // send request to server
-    this.http_post('delete', '_cid='+urlencode(a_cids.join(','))+'&_source='+urlencode(this.env.source)+'&_from='+(this.env.action ? this.env.action : '')+qs);
+    this.http_post('delete', '_cid='+urlencode(a_cids.join(','))
+      +'&_source='+urlencode(this.env.source)
+      +'&_from='+(this.env.action ? this.env.action : '')+qs,
+      this.display_message(this.get_label('contactdeleting'), 'loading'));
 
     return true;
   };

--
Gitblit v1.9.1