Primer commit del sistema avantika sin cambios
This commit is contained in:
56
javascript/inventario-bloqueados.js
Executable file
56
javascript/inventario-bloqueados.js
Executable file
@@ -0,0 +1,56 @@
|
||||
function Search()
|
||||
{
|
||||
$("action").value = "searchBloq";
|
||||
|
||||
new Ajax.Request(WEB_ROOT+'/ajax/inventario.php',
|
||||
{
|
||||
method:'post',
|
||||
parameters: $('frmSearch').serialize(),
|
||||
onLoading: function(){
|
||||
$('loadBusqueda').show();
|
||||
$('contenido').innerHTML = '';
|
||||
},
|
||||
onSuccess: function(transport){
|
||||
var response = transport.responseText || "no response text";
|
||||
|
||||
$('loadBusqueda').hide();
|
||||
$('contenido').innerHTML = response;
|
||||
},
|
||||
onFailure: function(){ alert('Something went wrong...') }
|
||||
});
|
||||
}
|
||||
|
||||
function LoadSubcats(){
|
||||
|
||||
var catId = $("prodCatId2").value;
|
||||
|
||||
new Ajax.Request(WEB_ROOT+'/ajax/inventario.php',{
|
||||
method:'post',
|
||||
parameters: {type:"loadSubcats", prodCatId:catId},
|
||||
onLoading: function(){
|
||||
$("enumSubcats").innerHTML = LOADER;
|
||||
},
|
||||
onSuccess: function(transport){
|
||||
var response = transport.responseText || "no response text";
|
||||
var splitResponse = response.split("[#]");
|
||||
|
||||
if(splitResponse[0] == "ok")
|
||||
$("enumSubcats").innerHTML = splitResponse[1];
|
||||
|
||||
},
|
||||
onFailure: function(){ alert('Something went wrong...') }
|
||||
});
|
||||
|
||||
}//LoadSubcats
|
||||
|
||||
function CheckKey(e){
|
||||
|
||||
if(window.event)
|
||||
keyCode = window.event.keyCode;
|
||||
else if(e)
|
||||
keyCode=e.which;
|
||||
|
||||
if(keyCode == 13)
|
||||
Search();
|
||||
|
||||
}//CheckKey
|
||||
Reference in New Issue
Block a user