summaryrefslogtreecommitdiffstats
path: root/apps/contacts/templates/part.selectaddressbook.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/contacts/templates/part.selectaddressbook.php')
-rw-r--r--apps/contacts/templates/part.selectaddressbook.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/contacts/templates/part.selectaddressbook.php b/apps/contacts/templates/part.selectaddressbook.php
index c54ddaf2e67..812a3b891ff 100644
--- a/apps/contacts/templates/part.selectaddressbook.php
+++ b/apps/contacts/templates/part.selectaddressbook.php
@@ -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) { ?>