From 9701145f830d5d4286e8602d3b0f464914468c34 Mon Sep 17 00:00:00 2001
From: Bart Visscher <bartv@thisnet.nl>
Date: Thu, 24 Nov 2011 21:34:50 +0100
Subject: [PATCH] Contacts: make type of phone property also multiselect in
 addproperty

---
 apps/contacts/js/interface.js            | 1 +
 apps/contacts/templates/part.details.php | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/contacts/js/interface.js b/apps/contacts/js/interface.js
index 24b512e532..ba1c0e536c 100644
--- a/apps/contacts/js/interface.js
+++ b/apps/contacts/js/interface.js
@@ -64,6 +64,7 @@ $(document).ready(function(){
 		else{
 			$('#contacts_generic').clone().insertAfter($('#contacts_addpropertyform .contacts_property_name'));
 		}
+		$('#contacts_addpropertyform .contacts_property_data select').chosen();
 	});
 
 	$('#contacts_addpropertyform input[type="submit"]').live('click',function(){
diff --git a/apps/contacts/templates/part.details.php b/apps/contacts/templates/part.details.php
index f5bd75809b..5e9a5c5674 100644
--- a/apps/contacts/templates/part.details.php
+++ b/apps/contacts/templates/part.details.php
@@ -75,7 +75,7 @@
 				</ul>
 				<p class="contacts_property_data" id="contacts_phonepart">
 					<input type="text" name="value" value="">
-					<select name="parameters[TYPE]" size="1">
+					<select name="parameters[TYPE][]" multiple="multiple" data-placeholder="<?php echo $l->t('Type') ?>">
 						<?php echo html_select_options($_['phone_types'], 'CELL') ?>
 					</select>
 				</p>
-- 
GitLab