Automatically check radio when new addressbook fields get focus.

This commit is contained in:
Thomas Tanghus 2012-08-13 15:07:15 +02:00
parent e72a57f595
commit d303763d1f
1 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,11 @@
<div id="selectaddressbook_dialog" title="<?php echo $l->t("Select Address Books"); ?>">
<script type="text/javascript">
$(document).ready(function() {
$('input.name,input.desc').on('focus', function(e) {
$('#book_new').prop('checked', true);
});
});
</script>
<form>
<table style="width: 100%">
<?php foreach($_['addressbooks'] as $idx => $addressbook) { ?>