[MERGE] thunderbird: openPartner and OpenDocument seem ok

bzr revid: hmo@tinyerp.com-20101007055658-nqctj2132yz6ze29
This commit is contained in:
Harry (OpenERP)
2010-10-07 11:26:58 +05:30
5 changed files with 6 additions and 10 deletions
Binary file not shown.
@@ -198,9 +198,7 @@ var openPartnerHandler = {
if (parseInt(partner_id) > 0){
var t = weburl + "/openerp/form/view?model=res.partner&id="+partner_id;
alert(t + ":" + " " + "\n\n" + "You can copy this URL into your WebBrowser if URL is not redirected automatic.");
window.open(t);
window.open(t, "", "chrome","resizable=yes,scrollbars=yes,status=yes");
}
else{
@@ -295,6 +293,7 @@ function open_partner()
searchPartner(senderemail);
}
var listDocumentHandler = {
onResult: function(client, context, result) {
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess');
@@ -304,8 +303,7 @@ var listDocumentHandler = {
weburl = getWebServerURL();
var t = weburl + "/openerp/form/view?model=" + model +"&id=" + res_id;
alert(t + ":" + " " + "\n\n" + "You can copy this URL into your WebBrowser if URL is not redirected automatic.");
window.open(t);
window.open(t, "", "chrome","resizable=yes,scrollbars=yes,status=yes");
},
onFault: function (client, ctxt, fault) {
@@ -57,5 +57,5 @@
label= "Open Document"
oncommand="open_document();" />
</toolbarpalette>
</overlay>
@@ -1831,10 +1831,8 @@ function testConnection(){
function testConnection_web(){
var branchobj = getPref();
weburl = getWebServerURL();
var urlport = weburl
alert(urlport + " " + "\n\n" + "You can copy this URL into your WebBrowser if URL is not redirected automatic.");
window.close();
window.open(urlport);
alert(weburl);
window.open(weburl, "", "chrome","resizable=yes,scrollbars=yes,status=yes");
}