Bug 319681 Can't delete location, description, etc from events. r=mvl

This commit is contained in:
jminta%gmail.com 2005-12-10 18:05:28 +00:00
parent d32e4a3407
commit e539eeb6a7

View File

@ -552,18 +552,26 @@ function onOKCommand()
var cats = getElementValue("categories-field");
if (cats)
event.setProperty("CATEGORIES", cats);
else
event.deleteProperty("CATEGORIES");
var desc = getElementValue("description-field");
if (desc)
event.setProperty("DESCRIPTION", desc);
else
event.deleteProperty("DESCRIPTION");
var location = getElementValue("location-field");
if (location)
event.setProperty("LOCATION", location);
else
event.deleteProperty("LOCATION");
var url = getElementValue("uri-field") ;
if (url)
event.setProperty("URL", url);
else
event.deleteProperty("URL");
// PRIVACY -----------------------------------------------------------