kopia lustrzana https://github.com/magicbug/Cloudlog
fix error message bug
rodzic
a4bc26d9b6
commit
2591d3aef6
|
@ -85,7 +85,7 @@ class Hrdlog extends CI_Controller {
|
|||
}
|
||||
}
|
||||
if ($i == 0) {
|
||||
$result['status']='OK';
|
||||
$result['status']='Error';
|
||||
}
|
||||
$result['count'] = $i;
|
||||
$result['errormessages'] = $errormessages;
|
||||
|
@ -147,7 +147,7 @@ class Hrdlog extends CI_Controller {
|
|||
echo json_encode($data);
|
||||
} else {
|
||||
$data['status'] = 'Error';
|
||||
$data['info'] = 'Error: No QSOs found to upload.';
|
||||
$data['info'] = 'No QSOs found to upload.';
|
||||
$data['errormessages'] = $result['errormessages'];
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ function ExportHrd(station_id) {
|
|||
$(".card-body").append('<div class="alert alert-success" role="alert">' + data.infomessage + '</div>');
|
||||
}
|
||||
else {
|
||||
$(".card-body").append('<div class="alert alert-danger" role="alert">' + data.info + '</div>');
|
||||
$(".card-body").append('<div class="alert alert-info" role="alert">' + data.info + '</div>');
|
||||
}
|
||||
|
||||
if (data.errormessages.length > 0) {
|
||||
|
|
Ładowanie…
Reference in New Issue