issue #0001372 : MajMin

This commit is contained in:
Michael RICOIS 2012-11-13 17:11:40 +00:00
parent 57dcf3e8b0
commit 76d9d2285c
2 changed files with 11 additions and 1 deletions

View File

@ -242,7 +242,8 @@ $('a.dialog').on('click', function(){
}, },
buttons: { buttons: {
Valider: function() { 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]'); var form = $('form[name=lien]');
$.post(form.attr('action'), form.serialize(), function(data){ $.post(form.attr('action'), form.serialize(), function(data){
$('form[name=lien]').replaceWith(data); $('form[name=lien]').replaceWith(data);

View File

@ -205,6 +205,15 @@ $('a#lienDoc').on('click', function(e){
e.preventDefault(); e.preventDefault();
$('div#doc').load($(this).attr('href')); $('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> </script>
<?php } else {?> <?php } else {?>