1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

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 db14482378
commit e805d90f21

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) { ?>