Primer commit del sistema avantika sin cambios
This commit is contained in:
30
javascript/reportes-tickets.js
Executable file
30
javascript/reportes-tickets.js
Executable file
@@ -0,0 +1,30 @@
|
||||
function Generar()
|
||||
{
|
||||
new Ajax.Request(WEB_ROOT+'/ajax/reportes-tickets.php',
|
||||
{
|
||||
method:'post',
|
||||
parameters:$('frmTickets').serialize(true),
|
||||
onLoading: function(){
|
||||
$('loadBusqueda').show();
|
||||
$('contenido').innerHTML = "";
|
||||
},
|
||||
onSuccess: function(transport){
|
||||
var response = transport.responseText || "no response text";
|
||||
var splitResponse = response.split("[#]");
|
||||
|
||||
$('loadBusqueda').hide();
|
||||
|
||||
if(splitResponse[0] == "ok")
|
||||
$("contenido").innerHTML = splitResponse[1];
|
||||
|
||||
},
|
||||
onFailure: function(){ alert('Something went wrong...') }
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function ExportInv()
|
||||
{
|
||||
$('frmTickets').submit();
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user