Issue #0001750: Modification du code javascript pour faire marcher la touche Entree
This commit is contained in:
parent
d77f57ae8f
commit
0c97c46568
@ -234,6 +234,15 @@ div#dialog .ui-widget-content { text-align:left; }
|
||||
$.datepicker.setDefaults( $.datepicker.regional["fr"] );
|
||||
$('input[name=dateEffetLien]').datepicker({ changeMonth: true, changeYear: true });
|
||||
|
||||
$('.ui-dialog').on('keypress', function(event){
|
||||
var code = (event.keyCode ? event.keyCode : event.which);
|
||||
if (code == 13)
|
||||
{
|
||||
event.preventDefault();
|
||||
$('.ui-button:contains("Valider")').click();
|
||||
}
|
||||
});
|
||||
|
||||
$('a#lienDoc').on('click', function(e){
|
||||
e.preventDefault();
|
||||
$('div#doc').load($(this).attr('href'));
|
||||
|
@ -15,5 +15,17 @@ $('#dialog').dialog({ buttons: [ {
|
||||
$(this).dialog("close");
|
||||
window.location.href = window.location.href;
|
||||
}
|
||||
} ] });
|
||||
} ]
|
||||
});
|
||||
|
||||
$(".ui-button:contains('Quitter')").focus();
|
||||
|
||||
$('.ui-dialog').on('keypress', function(event){
|
||||
var code = (event.keyCode ? event.keyCode : event.which);
|
||||
if (code == 13)
|
||||
{
|
||||
event.preventDefault();
|
||||
$('.ui-button:contains("Quitter")').click();
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user