[IMP]: Minor improvement
bzr revid: ksa@tinyerp.co.in-20100916052253-b95svjgvchvjuh9u
This commit is contained in:
parent
8b4bca1a0a
commit
f4ccb78d53
Binary file not shown.
Binary file not shown.
|
@ -24,7 +24,7 @@
|
|||
|
||||
</groupbox>
|
||||
<hbox align="right">
|
||||
<button label="Cancel" image="&imagecancel.value;" oncommand="config_close();" />
|
||||
<button label="Close" image="&imagecancel.value;" oncommand="config_close();" />
|
||||
<button label="OK" image="&imageok.value;" oncommand="config_ok()"/>
|
||||
</hbox>
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ function selectPartner(){
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
//function for the intialization procedure //used while loading and unloading of the window
|
||||
var myPrefObserver =
|
||||
{
|
||||
|
|
|
@ -472,7 +472,8 @@ var Address = {
|
|||
},
|
||||
|
||||
onMenuItemCommand: function(){
|
||||
open_contact();
|
||||
open_contact();
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -484,10 +485,11 @@ var Select = {
|
|||
},
|
||||
|
||||
onMenuItemCommand: function(){
|
||||
//document.getElementById("txtselectpartner").value="";
|
||||
window.open("chrome://openerp_plugin/content/selectpartner.xul", "", "chrome");
|
||||
// document.getElementById("txtselectpartner").value="";
|
||||
window.open("chrome://openerp_plugin/content/selectpartner.xul", "", "chrome");
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
var CreatePartner = {
|
||||
onLoad: function(){
|
||||
|
@ -495,7 +497,7 @@ var CreatePartner = {
|
|||
},
|
||||
|
||||
onMenuItemCommand: function(){
|
||||
window.open("chrome://openerp_plugin/content/createpartner.xul", "", "chrome");
|
||||
window.open("chrome://openerp_plugin/content/createpartner.xul", "", "chrome");
|
||||
}
|
||||
};
|
||||
window.addEventListener("load", function(e) { CreatePartner.onLoad(e); }, false);
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
||||
<!DOCTYPE window SYSTEM "chrome://openerp_plugin/locale/selectpartner.dtd">
|
||||
<window id="partnerwindowsid" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml" onload="getPartnerList()"
|
||||
<window id="partnerwindowsid" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" onload="getPartnerList()"
|
||||
title="&title.label;" height="500" width="375">
|
||||
<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>
|
||||
|
@ -29,7 +28,7 @@
|
|||
<button label="Create Partner" image="&imagecreate.value;" oncommand="CreatePartner.onMenuItemCommand(event);"/>
|
||||
<spacer width="45"/>
|
||||
<button label="&cancel.label;" image="&imagecancel.value;" oncommand="close();" />
|
||||
<button label="&select.label;" image="&imageok.value;" oncommand="selectPartner();close()"/>
|
||||
<button label="&select.label;" image="&imageok.value;" oncommand="selectPartner();close();"/>
|
||||
</hbox>
|
||||
|
||||
</window>
|
||||
|
|
|
@ -1329,7 +1329,9 @@ var listPartnerHandler = {
|
|||
listItem.value = arrPartnerList[i][0];
|
||||
cmdPartnerList.appendChild(listItem);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
onFault: function (client, ctxt, fault) {
|
||||
|
||||
|
@ -1368,7 +1370,6 @@ function getPartnerList(){
|
|||
}
|
||||
|
||||
|
||||
|
||||
//function to create the xmlrpc supported variables for xmlrpc request
|
||||
function dictcontact(a,b){
|
||||
var temp = xmlRpcClient.createType(xmlRpcClient.ARRAY,{});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!ENTITY title.label "OpenERP Configuration">
|
||||
<!ENTITY separate.label "Configuration Login for OpenERP!">
|
||||
<!ENTITY close.label "Cancel">
|
||||
<!ENTITY close.label "Close">
|
||||
<!ENTITY database.label "Database:">
|
||||
<!ENTITY ok.label "OK">
|
||||
<!ENTITY connection.label "Connect">
|
||||
|
|
Loading…
Reference in New Issue