pull/53/head
Alexandre Cloutier 2014-08-15 13:41:30 -04:00
parent b9dd1ddc5a
commit e044476772
1 changed files with 12 additions and 11 deletions

View File

@ -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) {