summaryrefslogtreecommitdiff
path: root/addons/plugin_thunderbird/plugin/openerp_plugin
diff options
context:
space:
mode:
authorMVA <mva@openerp.com>2011-12-20 11:51:34 +0100
committerMVA <mva@openerp.com>2011-12-20 11:51:34 +0100
commitc1bdc2d9248adddcdc26a1a65439e25a6917950d (patch)
tree7051255751b87a115162186062005e725ad1b509 /addons/plugin_thunderbird/plugin/openerp_plugin
parentcd73200f28fa1446076472ef20614d641c0aa305 (diff)
[CLEAN] hidde boxes after action
bzr revid: mva@openerp.com-20111220105134-zkqdw6f8ocnulazg
Diffstat (limited to 'addons/plugin_thunderbird/plugin/openerp_plugin')
-rw-r--r--addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jarbin48660 -> 48604 bytes
-rw-r--r--addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/js/create.js3
-rw-r--r--addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/js/push.js8
-rw-r--r--addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/push_dialog.xul4
4 files changed, 11 insertions, 4 deletions
diff --git a/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar b/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar
index 4c8e4bfca5b..692627754d8 100644
--- a/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar
+++ b/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar
Binary files differ
diff --git a/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/js/create.js b/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/js/create.js
index 21faf9f7949..6670002c9af 100644
--- a/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/js/create.js
+++ b/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/js/create.js
@@ -109,6 +109,7 @@ var listCreateContactHandler = {
//function to create a new contact
function createContact(){
+ window.close();
setServerService('xmlrpc/object');
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess');
var xmlRpcClient = getXmlRpc();
@@ -123,4 +124,4 @@ function createContact(){
var b = [document.getElementById("txtname").value, document.getElementById("txtemail").value];
var arrofarr = dictcontact(a,b);
xmlRpcClient.asyncCall(listCreateContactHandler,null,'execute',[strDbName,struid,strpass,strobj,strmethod,arrofarr, strpartnerid], 7);
-} \ No newline at end of file
+}
diff --git a/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/js/push.js b/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/js/push.js
index 9929ec6317e..95935853138 100644
--- a/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/js/push.js
+++ b/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/js/push.js
@@ -1,4 +1,8 @@
+
+
//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');
@@ -44,6 +48,7 @@ function getDocumentType(){
xmlRpcClient.asyncCall(DocumentTypeHandler,null,'execute',[strDbName,struid,strpass,strobj,strmethod], 5);
}
+
/**
* Return the current operation :
* add or create
@@ -141,7 +146,7 @@ var pushHandler = {
var message = result.QueryInterface(Components.interfaces.nsISupportsCString);
log_message(message)
alert(message)
- window.close("chrome://openerp_plugin/content/push.xul", "", "chrome");
+
},
onFault: function (client, ctxt, fault) {
@@ -155,6 +160,7 @@ var pushHandler = {
function push() {
+ window.close();
var model_name = document.getElementById('menu_model_list').selectedItem.value;
var res_id = 0;
if(getOperation() == "add") {
diff --git a/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/push_dialog.xul b/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/push_dialog.xul
index 4753f0613e6..27e8902a6f2 100644
--- a/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/push_dialog.xul
+++ b/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/push_dialog.xul
@@ -12,8 +12,8 @@
</hbox>
<hbox>
<button label="Cancel" accesskey="c" oncommand="window.close();"/>
- <button id="push_new" label="Push Email" accesskey="a" oncommand="window.open('chrome://openerp_plugin/content/push.xul', '', 'chrome', resizable='yes');"/>
- <button id="open" label="Open Document" accesskey="c" oncommand="window.open('chrome://openerp_plugin/content/create_new.xul', '', 'chrome', resizable='yes');"/>
+ <button id="push_new" label="Push Email" accesskey="a" oncommand=" window.close();window.open('chrome://openerp_plugin/content/push.xul', '', 'chrome', resizable='yes');"/>
+ <button id="open" label="Open Document" accesskey="c" oncommand="window.close();window.open('chrome://openerp_plugin/content/create_new.xul', '', 'chrome', resizable='yes');"/>
</hbox>
</vbox>
</window>