mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch 'ent-6925-vista-previa-en-acciones-de-alertas-recuperadas' into 'develop'
action_details avoid overlapping colors See merge request artica/pandorafms!3792
This commit is contained in:
commit
d6b7b46139
@ -1,4 +1,5 @@
|
|||||||
var original_command = "";
|
/* globals $ */
|
||||||
|
|
||||||
function parse_alert_command(command, classs) {
|
function parse_alert_command(command, classs) {
|
||||||
if (classs == "recovery") {
|
if (classs == "recovery") {
|
||||||
classs = "fields_recovery";
|
classs = "fields_recovery";
|
||||||
@ -9,16 +10,20 @@ function parse_alert_command(command, classs) {
|
|||||||
var nfield = 1;
|
var nfield = 1;
|
||||||
$("." + classs).each(function() {
|
$("." + classs).each(function() {
|
||||||
// Only render values different from ''
|
// Only render values different from ''
|
||||||
if ($(this).val() == "") {
|
|
||||||
nfield++;
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var field = "_field" + nfield + "_";
|
var field = "_field" + nfield + "_";
|
||||||
|
|
||||||
var regex = new RegExp(field, "gi");
|
var regex = new RegExp(field, "gi");
|
||||||
|
console.log($(this).val());
|
||||||
if ($(this).css("-webkit-text-security") == "disc") {
|
if ($(this).val() == "") {
|
||||||
|
if (
|
||||||
|
classs == "fields_recovery" &&
|
||||||
|
$($(".fields")[nfield - 1]).val() != ""
|
||||||
|
) {
|
||||||
|
command = command.replace(
|
||||||
|
regex,
|
||||||
|
"[RECOVER]" + $($(".fields")[nfield - 1]).val()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} else if ($(this).css("-webkit-text-security") == "disc") {
|
||||||
var hidden_character = "*";
|
var hidden_character = "*";
|
||||||
var hidden_string = hidden_character.repeat($(this).val().length);
|
var hidden_string = hidden_character.repeat($(this).val().length);
|
||||||
|
|
||||||
|
@ -3174,6 +3174,12 @@ table.alert_escalation th img {
|
|||||||
width: 18px;
|
width: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.action_details td.used_field {
|
||||||
|
background: #6eb432;
|
||||||
|
color: #8d8d8d;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
td.used_field {
|
td.used_field {
|
||||||
background: #6eb432;
|
background: #6eb432;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user