Fix domain id getting set to empty when adding place name

This commit is contained in:
Ryan Huffman 2017-11-02 17:42:24 -07:00
parent b990b4f3e0
commit b1fe3699f9

View file

@ -299,6 +299,7 @@ function chooseFromHighFidelityPlaces(accessToken, forcePathTo, onSuccessfullyAd
}); });
} }
// If domainID is not specified, the current domain id will be used.
function finishSettingUpPlace(domainID) { function finishSettingUpPlace(domainID) {
sendUpdatePlaceRequest( sendUpdatePlaceRequest(
placeID, placeID,
@ -306,9 +307,9 @@ function chooseFromHighFidelityPlaces(accessToken, forcePathTo, onSuccessfullyAd
domainID, domainID,
false, false,
function(data) { function(data) {
$(Settings.DOMAIN_ID_SELECTOR).val(domainID).change();
dialog.modal('hide') dialog.modal('hide')
if (domainID) { if (domainID) {
$(Settings.DOMAIN_ID_SELECTOR).val(domainID).change();
finalizeSaveDomainID(domainID); finalizeSaveDomainID(domainID);
} else { } else {
if (onSuccessfullyAdded) { if (onSuccessfullyAdded) {