[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[4137] branches/1.3/UI/login.js



Revision: 4137
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4137&view=rev
Author:   tshvr
Date:     2011-12-03 18:18:57 +0000 (Sat, 03 Dec 2011)
Log Message:
-----------
resolve File does not exist:...[object HTMLButtonElement]

Modified Paths:
--------------
    branches/1.3/UI/login.js

Modified: branches/1.3/UI/login.js
===================================================================
--- branches/1.3/UI/login.js	2011-12-03 17:04:31 UTC (rev 4136)
+++ branches/1.3/UI/login.js	2011-12-03 18:18:57 UTC (rev 4137)
@@ -2,9 +2,10 @@
 	var http = get_http_request_object();
     var username = document.login.login.value;
 	var password = document.login.password.value;
-	http.open("get", 'login.pl?action=authenticate&company='
-		+ document.login.company.value, false, 
-		username, password);
+	var company = document.login.company.value;
+	var action = document.login.action.value;
+        //alert('document.login.company.value='+document.login.company.value);
+	http.open("get", 'login.pl?action=authenticate&company='+company, false, username, password);
 	http.send("");
         if (http.status != 200){
                 if (http.status != '454'){
@@ -14,8 +15,7 @@
                 }
 		return false;
 	}
-	document.location = document.login.action + "?action=login&company="+
-		document.login.company.value;
+	document.location=document.login.action.value+".pl?action=login&company="+document.login.company.value;
 }
 
 function check_auth() {

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.