Browse Source

box-shadow sur les catégories quand non checké

master
n0m1s 10 years ago
parent
commit
d2c70cc72d
2 changed files with 15 additions and 4 deletions
  1. +4
    -0
      addEvent.css
  2. +11
    -4
      addEvent.php

+ 4
- 0
addEvent.css View File

@ -24,6 +24,10 @@
max-height: 300px;
}
.bad-checkbox {
box-shadow: 0px 0px 5px red;
}
#buttonDiv {
width:80%;
text-align: center;


+ 11
- 4
addEvent.php View File

@ -27,10 +27,10 @@ if(!$edit)
'debut-annee'=>date('Y'),
'debut-heure'=>date('G'),
'debut-minutes'=>'0',
'fin-jour'=>date('j'),
'fin-mois'=>date('n'),
'fin-annee'=>date('Y'),
'fin-heure'=>date('G'),
'fin-jour'=>date('j', strtotime('+1 hour')),
'fin-mois'=>date('n', strtotime('+1 hour')),
'fin-annee'=>date('Y', strtotime('+1 hour')),
'fin-heure'=>date('G', strtotime('+1 hour')),
'fin-minutes'=>'0',
'description'=>'',
'site'=>'',
@ -246,7 +246,14 @@ else
document.getElementById('eventForm').addEventListener('submit', function(e) {
if(!checkCheckboxes())
{
e.preventDefault();
var checkboxes = document.getElementsByClassName("checkbox-cat");
for(var i = 0; i < checkboxes.length; ++i)
{
checkboxes[i].className += " bad-checkbox";
}
}
});
</script>
</html>

Loading…
Cancel
Save