diff options
| author | Thibault Francois <tfr@openerp.com> | 2011-01-25 13:51:11 +0100 |
|---|---|---|
| committer | Thibault Francois <tfr@openerp.com> | 2011-01-25 13:51:11 +0100 |
| commit | 0aa7654d6d1d54316e25d778df52a18d75add88e (patch) | |
| tree | 68f925341b16de5da5f13a2ff11011d70f236d86 /addons/thunderbird/plugin | |
| parent | 5a20b4cf7bf3ccfae417c2ec7d2872603d10b039 (diff) | |
[FIX] Thunderbird false negative testing connection
bzr revid: tfr@openerp.com-20110125125111-sumkqbrljcn3ayiu
Diffstat (limited to 'addons/thunderbird/plugin')
| -rw-r--r-- | addons/thunderbird/plugin/openerp_plugin.xpi | bin | 246909 -> 249246 bytes | |||
| -rw-r--r-- | addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar | bin | 86582 -> 86507 bytes | |||
| -rw-r--r-- | addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js | 17 |
3 files changed, 6 insertions, 11 deletions
diff --git a/addons/thunderbird/plugin/openerp_plugin.xpi b/addons/thunderbird/plugin/openerp_plugin.xpi Binary files differindex bb67ccde0d1..12226013bdd 100644 --- a/addons/thunderbird/plugin/openerp_plugin.xpi +++ b/addons/thunderbird/plugin/openerp_plugin.xpi diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar Binary files differindex ee385c4e81d..e7c0511622e 100644 --- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar +++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar 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 a10fe47b521..14728432d64 100644 --- 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 @@ -612,7 +612,6 @@ function createMenuItem_db(aLabel) { //xmlrpc request handler for getting the list of database var listDbHandler = { onResult: function(client, context, result) { - setconnect_server("true") netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess'); var arrMethodList = result.QueryInterface(Components.interfaces.nsISupportsArray); // Set the number of results @@ -625,7 +624,7 @@ var listDbHandler = { var database = "" if (count > 0) { - setDBList("true") + setDBList("true"); var label = document.getElementById("database_option"); var vbox = document.createElement("vbox"); var hbox = document.createElement("hbox"); @@ -658,7 +657,7 @@ var listDbHandler = { } else { - setDBList("false") + setDBList("false"); } // Loop through the results, adding items to the list if (count) @@ -686,18 +685,14 @@ var listDbHandler = { }, onError: function (client, ctxt, status, errorMsg) { - if(status == 0) { - setconnect_server("true"); - setDBList("false"); - } - + setDBList("false"); } }; //function to get the database list function getDbList(argControl) { - setDBList("false") - setconnect_server("false") + setDBList("true"); + setconnect_server("true"); // Enable correct security netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess'); // Get the instance of the XML-RPC client @@ -1845,7 +1840,6 @@ function testConnection(){ function testConnection_web(){ var branchobj = getPref(); weburl = getWebServerURL(); -// window.open(weburl, "", "chrome","resizable=yes,scrollbars=yes,status=yes"); var messenger = Components.classes["@mozilla.org/messenger;1"].createInstance(); messenger = messenger.QueryInterface(Components.interfaces.nsIMessenger); messenger.launchExternalURL(weburl); @@ -1877,6 +1871,7 @@ var listcreateLoginHandler = { //function to check the login information function createConnection(){ + setconnect_server("true"); var branchobj = getPref(); setServerService('xmlrpc/common'); netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess'); |
