mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Red if 0, green if > 0
This commit is contained in:
@@ -916,6 +916,8 @@ class Logbookadvanced extends CI_Controller {
|
||||
// Process for batch QSO state fix
|
||||
$result = $this->logbookadvanced_model->fixStateBatch($dxcc);
|
||||
|
||||
$data['result'] = count($result);
|
||||
|
||||
$data['message'] = __("The number of QSOs updated for state/province in") . ' ' . $country . ' : ' . count($result);
|
||||
|
||||
header("Content-Type: application/json");
|
||||
|
||||
@@ -2188,6 +2188,10 @@ function saveOptions() {
|
||||
},
|
||||
success: function (response) {
|
||||
$('#fixStateBtn_' + dxcc).prop("disabled", false).removeClass("running");
|
||||
if (response.result == 0) {
|
||||
$('.result').html('<div class="alert alert-danger" role="alert">' + response.message + '</div>');
|
||||
return;
|
||||
}
|
||||
$('.result').html('<div class="alert alert-success" role="alert">' + response.message + '</div>');
|
||||
},
|
||||
error: function () {
|
||||
|
||||
Reference in New Issue
Block a user