From e9b4fe8806c96c8a90c491997ff40bbe7ebae3c2 Mon Sep 17 00:00:00 2001 From: "ksa (Open ERP)" Date: Mon, 20 Sep 2010 13:28:13 +0530 Subject: [IMP]:Improvement message detail bzr revid: ksa@tinyerp.co.in-20100920075813-jevp6wdw88dmd6q5 --- addons/thunderbird/plugin/openerp_plugin.xpi | Bin 152072 -> 152217 bytes .../openerp_plugin/chrome/openerp_plugin.jar | Bin 71721 -> 71793 bytes .../chrome/openerp_plugin/content/tiny_xmlrpc.js | 21 ++++++++++++++++++--- 3 files changed, 18 insertions(+), 3 deletions(-) (limited to 'addons/thunderbird/plugin') diff --git a/addons/thunderbird/plugin/openerp_plugin.xpi b/addons/thunderbird/plugin/openerp_plugin.xpi index 7f9bbc47b76..165781bb579 100644 Binary files a/addons/thunderbird/plugin/openerp_plugin.xpi and b/addons/thunderbird/plugin/openerp_plugin.xpi differ diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar index 4003f9af386..4afd40519d7 100644 Binary files a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar and b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar differ diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js index 2a4f09ff673..77b3ba8598a 100755 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js @@ -1392,7 +1392,22 @@ var listArchiveHandler = { netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess'); list_documents = document.getElementById('listSearchBox') var createId = result.QueryInterface(Components.interfaces.nsISupportsPRInt32); - alert("Mail is Already Archived Successfully.") + createId = parseInt(createId); + if(createId==0) + { + alert("Mail is Already Archived Successfully."); + } + else if (createId<0) + { + alert("sorry Mail is not Archived to" +" " + ":" + " "+ list_documents.value); + + } + + else if (createId>=1) + { + alert("Mail Archived Successfully to" +" " + ":" + " "+ list_documents.value); + } + window.close(); }, onFault: function (client, ctxt, fault) { @@ -1471,8 +1486,8 @@ function upload_archivemail() var arrofarr = dictcontact(a,b); xmlRpcClient.asyncCall(listArchiveHandler,null,'execute',[strDbName,struids,strpass,strobj,strmethod,arrofarr],6); - alert("Mail Archived Successfully to" +" " + ":" + " "+ list_documents.value); - window.close(); + // alert("Mail Archived Successfully to" +" " + ":" + " "+ list_documents.value); + //window.close(); } -- cgit v1.2.3