From 2ad93849ab72ee60ab0605aee043590dd1e24bec Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Mon, 25 Jun 2012 19:33:51 +0200 Subject: [PATCH] Idiot proof dialog ;-) --- apps/contacts/js/contacts.js | 2 +- .../contacts/templates/part.selectaddressbook.php | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js index 2a37a7ff9e..a87f7ca10d 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/js/contacts.js @@ -302,7 +302,7 @@ Contacts={ modal: true, height: 'auto', width: 'auto', buttons: { 'Ok':function() { - Contacts.UI.Card.add(';;;;;', '',$('#selectaddressbook_dialog').find('select').val(), true); + Contacts.UI.Card.add(';;;;;', '',$('#selectaddressbook_dialog').find('input:checked').val(), true); $(this).dialog('close'); }, 'Cancel':function() { $(this).dialog('close'); } diff --git a/apps/contacts/templates/part.selectaddressbook.php b/apps/contacts/templates/part.selectaddressbook.php index 38b8a4b767..4b152a6e1d 100644 --- a/apps/contacts/templates/part.selectaddressbook.php +++ b/apps/contacts/templates/part.selectaddressbook.php @@ -1,10 +1,17 @@
">
-> + + + + + - +