Primer commit del sistema avantika sin cambios
This commit is contained in:
34
javascript/facturas.js
Executable file
34
javascript/facturas.js
Executable file
@@ -0,0 +1,34 @@
|
||||
function DoLogin(){
|
||||
|
||||
new Ajax.Request(WEB_ROOT+'/ajax/facturas.php',
|
||||
{
|
||||
method:'post',
|
||||
parameters: $('frmLogin').serialize(),
|
||||
onSuccess: function(transport){
|
||||
var response = transport.responseText || "no response text";
|
||||
var splitResponse = response.split("[#]");
|
||||
|
||||
if(splitResponse[0] == "ok"){
|
||||
window.location.href = WEB_ROOT + "/facturas-listado";
|
||||
}else{
|
||||
ShowStatus(splitResponse[1]);
|
||||
}
|
||||
},
|
||||
|
||||
onFailure: function(){ alert('Something went wrong...') }
|
||||
|
||||
});
|
||||
|
||||
}//DoLogin
|
||||
|
||||
function CheckKeyL(e){
|
||||
|
||||
if(window.event)
|
||||
keyCode = window.event.keyCode;
|
||||
else if(e)
|
||||
keyCode=e.which;
|
||||
|
||||
if(keyCode == 13)
|
||||
DoLogin();
|
||||
|
||||
}//CheckKeyL
|
||||
Reference in New Issue
Block a user