issue #0001372 : MajMin
This commit is contained in:
parent
57dcf3e8b0
commit
76d9d2285c
@ -242,7 +242,8 @@ $('a.dialog').on('click', function(){
|
||||
},
|
||||
buttons: {
|
||||
Valider: function() {
|
||||
if ($('input[name=id1]').length>0 && $('input[name=id2]').length>0) {
|
||||
if ($('input[name=mode]').val()=='delete' && $('input[name=id1]').length>0
|
||||
|| $('input[name=id1]').length>0 && $('input[name=id2]').length>0) {
|
||||
var form = $('form[name=lien]');
|
||||
$.post(form.attr('action'), form.serialize(), function(data){
|
||||
$('form[name=lien]').replaceWith(data);
|
||||
|
@ -205,6 +205,15 @@ $('a#lienDoc').on('click', function(e){
|
||||
e.preventDefault();
|
||||
$('div#doc').load($(this).attr('href'));
|
||||
});
|
||||
|
||||
$('input[name=PDetention]').on('blur', function(e){
|
||||
e.preventDefault();
|
||||
if ($(this).val()>50){
|
||||
$('select[name=MajMin]').val('+');
|
||||
} else {
|
||||
$('select[name=MajMin]').val('-');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php } else {?>
|
||||
|
Loading…
Reference in New Issue
Block a user