[FIX] plugin thunderbird : opendocument with https
bzr revid: tfr@openerp.com-20110131143140-o8zl8l5quugernse
This commit is contained in:
parent
a3d64bb1e6
commit
e37edf0e31
Binary file not shown.
Binary file not shown.
|
@ -115,12 +115,20 @@ function config_ok_web()
|
|||
return false;
|
||||
|
||||
}
|
||||
if (document.getElementById('txtcwebport').value == '')
|
||||
if (document.getElementById('txtcwebport').value == '' && !document.getElementById('lblssl').checked)
|
||||
{
|
||||
alert("You Must Enter Port!")
|
||||
return false;
|
||||
}
|
||||
setWebServerURL("http://"+document.getElementById('txtcweburl').value +":" + document.getElementById('txtcwebport').value);
|
||||
var protocol = "http://";
|
||||
var port = document.getElementById('txtcwebport').value
|
||||
if(document.getElementById('lblssl').checked) {
|
||||
protocol = "https://";
|
||||
if(port == '') {
|
||||
port = 443
|
||||
}
|
||||
}
|
||||
setWebServerURL(protocol + document.getElementById('txtcweburl').value +":" + port);
|
||||
window.close("chrome://openerp_plugin/content/config_change_web.xul", "", "chrome");
|
||||
window.open("chrome://openerp_plugin/content/config.xul", "", "chrome");
|
||||
}
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
<label id="lblport" control="txtcport" value="&lblport.label;" width="50"/>
|
||||
<textbox id="txtcwebport" width="140" />
|
||||
</hbox>
|
||||
<hbox>
|
||||
|
||||
<checkbox id="lblssl" label="SSL (https)" checked="false"/>
|
||||
</hbox>
|
||||
|
||||
</groupbox>
|
||||
<hbox align="right">
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<!ENTITY lblurl.label "Server: ">
|
||||
<!ENTITY lblport.label "Port: ">
|
||||
<!ENTITY lblssl.label "Use SLL ? ">
|
||||
|
||||
<!ENTITY lblheading.label "Openerp Connection">
|
||||
<!ENTITY imagecancel.value "chrome://openerp_plugin/skin/Error.gif">
|
||||
<!ENTITY imageok.value "chrome://openerp_plugin/skin/Success.gif">
|
||||
|
|
Loading…
Reference in New Issue