summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-08-13 15:07:15 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-08-13 15:07:15 +0200
commitd303763d1f7b532a69f2865c16a71e90bbf2fe5c (patch)
tree6367be1a0b041a78fdfff78403da07134a0aa9d8 /apps
parente72a57f5950c7feb01cfa5544a1da8852ca9aa43 (diff)
downloadnextcloud-server-d303763d1f7b532a69f2865c16a71e90bbf2fe5c.tar.gz
nextcloud-server-d303763d1f7b532a69f2865c16a71e90bbf2fe5c.zip
Automatically check radio when new addressbook fields get focus.
Diffstat (limited to 'apps')
-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) { ?>