[IMP]: Improve code
bzr revid: ksa@tinyerp.co.in-20101004125334-9cie7pxp0ofynifo
This commit is contained in:
parent
f0c1a50d3c
commit
3f22760991
Binary file not shown.
Binary file not shown.
|
@ -1783,24 +1783,6 @@ var listLoginHandler = {
|
|||
}
|
||||
|
||||
|
||||
var listLoginwebHandler = {
|
||||
onResult: function(client, context, result) {
|
||||
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserAccess');
|
||||
weburl = getWebServerURL();
|
||||
|
||||
var urlport = weburl
|
||||
alert(urlport + ":" + " " + "\n\n" + "You can copy this URL into your WebBrowser if URL is not redirected automatic.");
|
||||
window.open(t);
|
||||
},
|
||||
onFault: function (client, ctxt, fault) {
|
||||
|
||||
},
|
||||
|
||||
onError: function (client, ctxt, status, errorMsg) {
|
||||
alert("Database does not Exist!\n\n Please specify proper database name.");
|
||||
}
|
||||
}
|
||||
|
||||
//function to check the login information
|
||||
function testConnection(){
|
||||
if (getconnect_server() == "false")
|
||||
|
@ -1853,7 +1835,6 @@ function testConnection_web(){
|
|||
alert(urlport + " " + "\n\n" + "You can copy this URL into your WebBrowser if URL is not redirected automatic.");
|
||||
window.close();
|
||||
window.open(urlport);
|
||||
xmlRpcClient.asyncCall(listLoginwebHandler,null,'login',[strwebName],1);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue