diff --git a/addons/thunderbird/plugin/openerp_plugin.xpi b/addons/thunderbird/plugin/openerp_plugin.xpi index 58b63dd50ce..74155540fe8 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 93a0d86fc7f..2544935b0a4 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/config.js b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.js index f62abdbcb9a..ac6c0b56560 100755 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.js +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.js @@ -66,12 +66,6 @@ function openConfigChange() function appendDbList() { - /*var s = document.getElementById('txturl').value; - var a =s.split(':'); - setPort(a[a.length-1]); - setServer(document.getElementById('txturl').value); - setUsername(document.getElementById('txtusername').value); - setPassword(document.getElementById('txtpassword').value);*/ setServerService('xmlrpc/db'); getDbList('DBlist'); } @@ -151,7 +145,6 @@ function addFile(){ var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(this, "Select a File", nsIFilePicker.modeOpen); fp.appendFilters(nsIFilePicker.filterImages); - //fp.appendFilter("Image Files","*.png"); var res = fp.show(); if (res == nsIFilePicker.returnOK){ var thefile = fp.file; diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js index f095010f03d..c39e0e80f58 100755 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/loaddata.js @@ -93,7 +93,6 @@ var myPrefObserver = createContactAddress: function() { -// getResourceId(); document.getElementById("txtname").value= getPartnerName(); document.getElementById("txtcontactname").value= getSenderName(); document.getElementById("txtstreet").value= getStreet(); 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 65bdd4040fd..6cb92fc875b 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 @@ -24,7 +24,7 @@ var attach_eml ="no"; var popup_display = "yes" var rpc= { servers: {}, - addserver: function(name,ip,port,path) {//alert(name+','+ip+','+port+','+path); + addserver: function(name,ip,port,path) { netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess'); this.servers[name]= { ip: ip, @@ -84,11 +84,9 @@ var rpc= { case Date: return 5; case Object: return 7; case Array: return 6; - // base64 } } return 7; - //return [false,'error checktype','Unknown type']; }, set: function(rpcobj,param) { netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess'); @@ -426,8 +424,6 @@ function getSenderName(){ } else { - //string = str.replace(/[\+\/\=\?\_\-]/g, ""); -// string = str.replace(/[\'ë']/g,'e'); string = str.replace(/[\'Š',\'Ž',\'š',\'ž',\'Ÿ',\'À',\'Á',\'Â',\'Ã',\'Ä',\'Å',\'Ç',\'È',\'É',\'Ê',\'Ë',\'Ì',\'Í',\'Î',\'Ï',\'Ñ',\'Ò',\'Ó',\'Ô',\'Õ',\'Ö',\'Ø',\'Ù',\'Ú',\'Û',\'Ü',\'Ý',\'à',\'á',\'â',\'ã',\'ä',\'å',\'ç',\'è',\'é',\'ê',\'ë',\'ì',\'í',\'î',\'ï',\'ñ',\'ò',\'ó',\'ô',\'õ',\'ö',\'ø',\'ù',\'ú',\'û',\'ü',\'ý',\'ÿ',\'Þ',\'þ',\'Ð',\'ð',\'ß',\'Œ',\'œ',\'Æ',\'æ',\'µ']/g,'"',"'",'“','”',"\n","\r",'_/',"'S','Z','s','z','Y','A','A','A','A','A','A','C','E','E','E','E','I','I','I','I','N','O','O','O','O','O','O','U','U','U','U','Y','a','a','a','a','a','a','c','e','e','e','e','i','i','i','i','n','o','o','o','o','o','o','u','u','u','u','y','y','TH','th','DH','dh','ss','OE','oe','AE','ae','u','','','','','','','-'"); var utftext = ""; @@ -440,8 +436,6 @@ function getSenderName(){ utftext += String.fromCharCode(c); } } - // encoded_string = encodeURIComponent(utftext); - // decoded_string = decodeURIComponent(encoded_string); encoded_string = encode64(utftext); return encoded_string; } @@ -589,7 +583,6 @@ var listDbHandler = { setconnect_server("true") netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess'); var arrMethodList = result.QueryInterface(Components.interfaces.nsISupportsArray); - // Set the number of results var count = arrMethodList.Count(); // Loop through the results, adding items to the list for (i = 0; i < count; i++) { @@ -638,7 +631,7 @@ var listDbHandler = { if (count) { const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; - var popup = document.getElementById("DBlist"); // a element + var popup = document.getElementById("DBlist"); var arrsec=new Array() for (var i=0;i element + var popup = document.getElementById("section"); for (i=0;i element + var popup = document.getElementById("country"); for (i=0;i element for (i=0;i element + var popup = document.getElementById("section").selectedItem.value; if(getPref().getCharPref('attachmentlength')>0){ if (getAttachValue() == '1'){ //calling the method to create the attachments @@ -1284,30 +1258,26 @@ var listArchiveHandler = { attachment = "yes" } else{ -// alert("Mail Archived Successfully"); attachment = "no" } } else{ -// alert("Mail Archived Successfully"); attachment = "no" } createAttachmentEML_CRM(popup, createId, attachment) }, onFault: function (client, ctxt, fault) { - //alert('XML-RPC Fault: '+fault); }, onError: function (client, ctxt, status, errorMsg) { - //alert("You must select object !") } } //function to archive the mail content through xmlrpc request function archivemail(){ - var popup = document.getElementById("section").selectedItem; // a element + var popup = document.getElementById("section").selectedItem; if (String(popup) != "null"){ object=popup.value; @@ -1385,15 +1355,12 @@ var listUpdateContactHandler = { netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess'); var ResourceId = result.QueryInterface(Components.interfaces.nsISupportsPRInt32); setResourceId(ResourceId); - //alert("Contact Created Successfully."); window.close(); }, onFault: function (client, ctxt, fault) { - //alert('XML-RPC Fault: '+fault); }, onError: function (client, ctxt, status, errorMsg) { - //alert('Error: '+errorMsg); } } @@ -1448,11 +1415,9 @@ var listAttachHandler = { }, onFault: function (client, ctxt, fault) { -// alert('XML-RPC Fault: '+fault); }, onError: function (client, ctxt, status, errorMsg) { -// alert('Error: '+client + ctxt + status + errorMsg); } } @@ -1473,7 +1438,6 @@ function createAttachment(popup,res_id){ var strobj = xmlRpcClient.createType(xmlRpcClient.STRING,{}); strobj.data = 'thunderbird.partner'; var resobj = xmlRpcClient.createType(xmlRpcClient.STRING,{}); -// var popup = document.getElementById("section").selectedItem; // a element object=popup; resobj.data = object; var a = ['name','datas','res_model','res_id','description','datas_fname']; @@ -1557,10 +1521,7 @@ return output; function createInstance(name,test){ var encoded_string = ''; var file_name = '' - //alert("Downloading Attachment Data"); for(i=0;i element + var popup = document.getElementById("section").selectedItem; object=popup.value; resobj.data = object; var a = ['object']; var b = [getPref().getCharPref("object")]; var arrofarr = dictcontact(a,b); - //alert("FIRST::::::" + strDbName + struids + strpass + strobj + strmethod + arrofarr) xmlRpcClient.asyncCall(listsearchAttachmentHandler,null,'execute',[strDbName,struids,strpass,strobj,strmethod,arrofarr],6); } @@ -1989,7 +1939,6 @@ function createAttachmentEML() var strobj = xmlRpcClient.createType(xmlRpcClient.STRING,{}); strobj.data = 'thunderbird.partner'; var resobj = xmlRpcClient.createType(xmlRpcClient.STRING,{}); - var popup = document.getElementById("section").selectedItem; // a element object=popup.value; resobj.data = object; filename = getFileName() @@ -2053,8 +2002,6 @@ function createAttachmentEML_CRM(model, id, attachment) alert("Mail Archived Successfully"); window.close(); } - //getPref().setCharPref("attachmentdata","") -// file.remove(true); attach_eml="yes"; var branchobj = getPref(); setServerService('xmlrpc/object'); @@ -2119,7 +2066,7 @@ function attachmentWidnowOpen(msg) { if (msg=="create"){ - var popup = document.getElementById("section").selectedItem; // a element + var popup = document.getElementById("section").selectedItem; if (String(popup) != "null"){ object=popup.value; @@ -2157,7 +2104,7 @@ function attachmentWidnowOpen(msg) { if (msg=="create") { - var popup = document.getElementById("section").selectedItem; // a element + var popup = document.getElementById("section").selectedItem; if (String(popup) != "null"){ object=popup.value; if (object=="" || object == undefined) { alert("select at least one document !")}