Fix systematic errors in pagination, sucursal warnings, and fatal count() errors across multiple modules

This commit is contained in:
2026-01-07 01:06:27 -06:00
parent aaa77e870e
commit 3a5afa82fe
354 changed files with 9022 additions and 15093 deletions

View File

@@ -1,7 +1,7 @@
var DOC_ROOT = "../";
var DOC_ROOT_TRUE = "../";
var DOC_ROOT_SECTION = "../../";
var WEB_ROOT = "http://" + document.location.hostname + "/html";
var WEB_ROOT = document.location.origin;
var LOADER = "<img src='"+WEB_ROOT+"/images/load.gif'>";
var LOADER2 = "<div align='center'><img src='"+WEB_ROOT+"/images/loading.gif'><br>Cargando...</div>";
@@ -28,20 +28,22 @@ function LoginCheck()
{
parameters: $('loginForm').serialize(true),
method:'post',
onSuccess: function(transport){
var response = transport.responseText || "no response text";
var splitResponse = response.split("[#]");
if(splitResponse[0] == "ok")
{
Redirect('/homepage');
}
else
{
ShowStatus(splitResponse[1]);
}
},
onSuccess: function(transport){
var response = transport.responseText || "no response text";
console.log("AJAX Response:", response);
var splitResponse = response.split("[#]");
var status = splitResponse[splitResponse.length - 1]; // Get the last part as status
var message = splitResponse[0]; // Get the first part as message
if(status == "ok")
{
Redirect('/homepage');
}
else
{
ShowStatus(message); // Display the actual message
}
},
onFailure: function(){ alert('Something went wrong...') }
});