[CLEAN] clean config link contact and push document
bzr revid: mva@openerp.com-20111221090138-5ei80yd2ltdsyf7b
This commit is contained in:
parent
c1bdc2d924
commit
d8ac32e717
Binary file not shown.
Binary file not shown.
|
@ -8,17 +8,8 @@
|
|||
<script type="text/javascript" src="chrome://openerp_plugin/content/js/tiny_xmlrpc.js"></script>
|
||||
<script type="text/javascript" src="chrome://openerp_plugin/content/js/tools.js"></script>
|
||||
<script type="text/javascript" src="chrome://openerp_plugin/content/js/create.js"></script>
|
||||
<!--<groupbox id="contact" >
|
||||
<hbox>
|
||||
<label align="right" id="partner" value="&selectpartner.value;" width="90" class="text-prompt"/>
|
||||
<textbox id="txtselectpartner" readonly="true" value="" width="170"/>
|
||||
<button label="&bsearch.label;" oncommand="window.open('chrome://openerp_plugin/content/selectpartner.xul', '', 'chrome', 'resizable=yes');" image="&imagesearch.value;"/>
|
||||
</hbox>
|
||||
</groupbox>-->
|
||||
<groupbox id="information" >
|
||||
<!--<separator class="groove-thin" orient="horizontal" width="90"/> -->
|
||||
<caption label="Address Detail" />
|
||||
<!--<separator class="groove-thin" orient="horizontal" width="90"/> -->
|
||||
<grid flex="1">
|
||||
<columns>
|
||||
<column />
|
||||
|
@ -38,8 +29,8 @@
|
|||
<separator class="groove-thin" orient="horizontal" width="90"/>
|
||||
</groupbox>
|
||||
<hbox align="right">
|
||||
<button label="&cancel.label;" image="&imagecancel.value;" oncommand="close();" />
|
||||
<button label="&ok.label;" image="&imageok.value;" oncommand="createContact();"/>
|
||||
<button label="link to a partner" image="&imageok.value;" oncommand="createContact();"/>
|
||||
<button label="cancel" image="&imagecancel.value;" oncommand="close();" />
|
||||
<button label="create partner" image="&imageok.value;" oncommand="createContact();"/>
|
||||
<button label="link to a partner" image="&imageok.value;" oncommand="window.open('chrome://openerp_plugin/content/selectpartner.xul', '', 'chrome', resizable='yes');"/>
|
||||
</hbox>
|
||||
</window>
|
||||
|
|
|
@ -199,6 +199,7 @@ function open_document() {
|
|||
var strobj = get_rpc_string(xmlRpcClient, 'plugin.handler');
|
||||
|
||||
var eml_string = getMessage(messageUri);
|
||||
setPreference('email_text', eml_string);
|
||||
var email = get_rpc_string(xmlRpcClient, eml_string);
|
||||
xmlRpcClient.asyncCall(listDocumentHandler,null,'execute',[strDbName,struids,strpass,strobj,strmethod, email],6);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
|
||||
|
||||
//xmlrpc request handler for list of search object exist in database or not.
|
||||
|
||||
|
||||
var DocumentTypeHandler = {
|
||||
onResult: function(client, context, result) {
|
||||
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess');
|
||||
|
@ -48,7 +44,6 @@ function getDocumentType(){
|
|||
xmlRpcClient.asyncCall(DocumentTypeHandler,null,'execute',[strDbName,struid,strpass,strobj,strmethod], 5);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the current operation :
|
||||
* add or create
|
||||
|
@ -146,7 +141,7 @@ var pushHandler = {
|
|||
var message = result.QueryInterface(Components.interfaces.nsISupportsCString);
|
||||
log_message(message)
|
||||
alert(message)
|
||||
|
||||
window.close();
|
||||
},
|
||||
|
||||
onFault: function (client, ctxt, fault) {
|
||||
|
@ -190,4 +185,3 @@ function push() {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -12,15 +12,6 @@
|
|||
<menubar id="mail-menubar" >
|
||||
<menu insertafter="messageMenu" id="menu_openerp" label="&openerpMenu.label;" accesskey="&openerpMenu.accesskey;">
|
||||
<menupopup id="taskPopup">
|
||||
<!--
|
||||
<menuseparator/>
|
||||
<menuitem id="tiny-plugin4" label="&tinypluginconfig;"
|
||||
oncommand="check(searchmail);"
|
||||
image="&menuicon.value;"
|
||||
class="menuitem-iconic"
|
||||
tooltiptext="&pluginconfigvalue.value;"
|
||||
/>
|
||||
<menuseparator/>-->
|
||||
<menuitem id="tiny-openpartner" label="&openpartner.value;"
|
||||
oncommand="check(open_partner);"
|
||||
image="&menuicon.value;"
|
||||
|
@ -45,15 +36,6 @@
|
|||
</menubar>
|
||||
|
||||
|
||||
<!--
|
||||
<toolbarpalette id="MailToolbarPalette">
|
||||
<toolbarbutton id="GA-button"
|
||||
class="toolbarbutton-1"
|
||||
image="&menuicon.value;"
|
||||
label= "Push"
|
||||
oncommand="check(searchmail);" />
|
||||
</toolbarpalette>
|
||||
-->
|
||||
<toolbarpalette id="MailToolbarPalette">
|
||||
<toolbarbutton id="GA-button2"
|
||||
class="toolbarbutton-1"
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
<description></description>
|
||||
<hbox>
|
||||
<spacer width="45"/>
|
||||
<button label="&cancel.label;" image="&imagecancel.value;" oncommand="close();" />
|
||||
<button label="&select.label;" image="&imageok.value;" oncommand="selectPartner();close();"/>
|
||||
<button label="cancel" image="&imagecancel.value;" oncommand="close();" />
|
||||
<button label="link" image="&imageok.value;" oncommand="selectPartner();window.close();"/>
|
||||
</hbox>
|
||||
|
||||
</window>
|
||||
|
|
Loading…
Reference in New Issue