[IMP] : solve the problem for configuration change for server
bzr revid: ksa@tinyerp.co.in-20100805133504-w2yh1djikvpuo292
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,8 +1,10 @@
|
||||
|
||||
function config_close()
|
||||
{
|
||||
window.close("chrome://openerp_plugin/content/config_change.xul", "", "chrome");
|
||||
window.close("chrome://openerp_plugin/content/config_change.xul", "", "chrome");
|
||||
window.open("chrome://openerp_plugin/content/config.xul", "", "chrome");
|
||||
}
|
||||
|
||||
//set the value of the configuration fields
|
||||
function config_change_load()
|
||||
{
|
||||
@@ -58,10 +60,12 @@ function config_ok()
|
||||
}
|
||||
setServer("http://"+document.getElementById('txtcurl').value +":" + document.getElementById('txtcport').value);
|
||||
window.close("chrome://openerp_plugin/content/config_change.xul", "", "chrome");
|
||||
window.open("chrome://openerp_plugin/content/config.xul", "", "chrome");
|
||||
}
|
||||
function openConfigChange()
|
||||
{
|
||||
window.open("chrome://openerp_plugin/content/config_change.xul", "", "chrome");
|
||||
window.close("chrome://openerp_plugin/content/config.xul", "", "chrome");
|
||||
window.open("chrome://openerp_plugin/content/config_change.xul", "", "chrome");
|
||||
}
|
||||
|
||||
function appendDbList()
|
||||
|
||||
+5
-2
@@ -3,13 +3,16 @@
|
||||
<!DOCTYPE window SYSTEM "chrome://openerp_plugin/locale/config_change.dtd">
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml" onload="config_change_load()"
|
||||
title="Server" height="140" width="240">
|
||||
title="Openerp Connection" height="140" width="280">
|
||||
<script type="text/javascript" src="chrome://openerp_plugin/content/tiny_xmlrpc.js"></script>
|
||||
<script type="text/javascript" src="chrome://openerp_plugin/content/config.js"></script>
|
||||
<script type="text/javascript" src="chrome://openerp_plugin/content/loaddata.js"></script>
|
||||
<script type="text/javascript" src="chrome://openerp_plugin/content/static.js"></script>
|
||||
<script type="text/javascript" src="chrome://openerp_plugin/content/overlay.js"></script>
|
||||
<description>Connect To OpenERP Server</description>
|
||||
<hbox>
|
||||
<spacer width="70"/>
|
||||
<description>Openerp Connection</description>
|
||||
</hbox>
|
||||
<groupbox id="gpData" width="200">
|
||||
<hbox >
|
||||
<label id="lblurl" control="txtcurl" value="&lblurl.label;" width="80"/>
|
||||
|
||||
@@ -45,7 +45,6 @@ var myPrefObserver =
|
||||
//set the initial value of name and email field of create contact window
|
||||
createContact: function()
|
||||
{
|
||||
//document.getElementById("txtselectpartner").value= getPartnerName();
|
||||
document.getElementById("txtname").value= getSenderName();
|
||||
document.getElementById("txtemail").value= getSenderEmail();
|
||||
document.getElementById("country").value=getAllCountry();
|
||||
@@ -122,13 +121,10 @@ var myPrefObserver =
|
||||
// aData is the name of the pref that's been changed (relative to aSubject)
|
||||
switch (aData) {
|
||||
case "serverport":
|
||||
// extensions.myextension.pref1 was changed
|
||||
break;
|
||||
case "serverurl":
|
||||
// extensions.myextension.pref2 was changed
|
||||
break;
|
||||
case "serverdbname":
|
||||
// extensions.myextension.pref2 was changed
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -246,7 +246,6 @@ function open_contact()
|
||||
//function to open the configuration window
|
||||
var Config = {
|
||||
onLoad: function() {
|
||||
// initialization code
|
||||
this.initialized = true;
|
||||
},
|
||||
|
||||
|
||||
@@ -396,7 +396,6 @@ function getPassword(){
|
||||
//get serverservice
|
||||
function getServerService(){
|
||||
return strServerService;
|
||||
// return getPref().getCharPref('strServerService');
|
||||
}
|
||||
|
||||
//get sender email
|
||||
@@ -1342,11 +1341,9 @@ var listCreateContactHandler = {
|
||||
window.close();
|
||||
},
|
||||
onFault: function (client, ctxt, fault) {
|
||||
alert('XML-RPC Fault: '+fault);
|
||||
},
|
||||
|
||||
onError: function (client, ctxt, status, errorMsg) {
|
||||
alert('Error: '+errorMsg);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1629,11 +1626,9 @@ var listcreateLoginHandler = {
|
||||
}
|
||||
},
|
||||
onFault: function (client, ctxt, fault) {
|
||||
alert('XML-RPC Fault: '+fault);
|
||||
},
|
||||
|
||||
onError: function (client, ctxt, status, errorMsg) {
|
||||
setconnect_server("false")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1659,7 +1654,6 @@ var listCreatePartnerHandler = {
|
||||
var createId = result.QueryInterface(Components.interfaces.nsISupportsPRInt32);
|
||||
|
||||
if(typeof(createId.data) == 'number' && createId!=0){
|
||||
// alert("Partner Created Successfully");
|
||||
window.close();
|
||||
}
|
||||
if(createId == 0){
|
||||
@@ -1847,7 +1841,6 @@ var listsearchAttachmentHandler = {
|
||||
|
||||
//function to create a new attachment record
|
||||
function listSearchDocumentAttachment(){
|
||||
//alert("AA:")
|
||||
var branchobj = getPref();
|
||||
setServerService('xmlrpc/object');
|
||||
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess');
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
<!ENTITY title.label "OpenERP & Thunderbird Integration!">
|
||||
<!ENTITY title.label "OpenERP Configuration">
|
||||
<!ENTITY separate.label "Configuration Login for OpenERP!">
|
||||
<!ENTITY close.label "Cancel">
|
||||
<!ENTITY database.label "Database: ">
|
||||
|
||||
Reference in New Issue
Block a user