mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 21:58:06 +00:00
Bug 319681 Can't delete location, description, etc from events. r=mvl
This commit is contained in:
parent
d32e4a3407
commit
e539eeb6a7
@ -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 -----------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user