From e044476772b304e307f7853906996282f9b0eb93 Mon Sep 17 00:00:00 2001 From: Alexandre Cloutier Date: Fri, 15 Aug 2014 13:41:30 -0400 Subject: [PATCH] bugFix #2827 --- UI/WebServerResources/ContactsUI.js | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/UI/WebServerResources/ContactsUI.js b/UI/WebServerResources/ContactsUI.js index 34337281d..9781a2c44 100644 --- a/UI/WebServerResources/ContactsUI.js +++ b/UI/WebServerResources/ContactsUI.js @@ -1071,17 +1071,18 @@ function updateAddressBooksMenus() { function onAddressBookModify(event) { var folders = $("contactFolders"); var selected = folders.getSelectedNodes()[0]; - var addressBookID = selected.getAttribute("id"); - var url = ApplicationBaseURL + addressBookID + "/properties"; - var windowID = sanitizeWindowName(addressBookID + " properties"); - var width = 410; - var height = 410; - - $(function() { - var properties = window.open(url, windowID, "width="+width+",height="+height+",resizable=0"); - properties.focus(); - }).delay(0.1); - + if (selected.getAttribute("list-editing") == "available") { + var addressBookID = selected.getAttribute("id"); + var url = ApplicationBaseURL + addressBookID + "/properties"; + var windowID = sanitizeWindowName(addressBookID + " properties"); + var width = 410; + var height = 410; + + $(function() { + var properties = window.open(url, windowID, "width="+width+",height="+height+",resizable=0"); + properties.focus(); + }).delay(0.1); + } } function onMenuSharing(event) {