Revision 173d37e2
Corrections jslint dans vigiboard.
Change-Id: I64c6ecad91875d01e8f4399fc077b856c43783be
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/1425
Tested-by: Build system <qa@vigilo-dev.si.c-s.fr>
Reviewed-by: Francois POIROTTE <francois.poirotte@c-s.fr>
vigiboard/public/js/silence_form.js | ||
---|---|---|
68 | 68 |
function adapt_states_field() { |
69 | 69 |
// Si le champ 'service' est vide, on cache les états spécifiques aux |
70 | 70 |
// services et on affiche les états d'hôtes |
71 |
if ($('service').get('value') == '') { |
|
71 |
if ($('service').get('value') === '') {
|
|
72 | 72 |
$('service_states').hide(); |
73 | 73 |
$('host_states').show(); |
74 | 74 |
// Si le champ 'service' n'est pas vide, on affiche les états spécifiques |
... | ... | |
83 | 83 |
// Fonction appelée suite à la validation du formulaire |
84 | 84 |
function submit_form() { |
85 | 85 |
// Traitement des règles portant sur les hôtes |
86 |
if ($('service').get('value') == '') { |
|
86 |
if ($('service').get('value') === '') {
|
|
87 | 87 |
$('states').set('value', $$('#host_states input').get('value')[0]); |
88 | 88 |
$('host_states').destroy(); |
89 | 89 |
$('service_states').destroy(); |
Also available in: Unified diff