Bug 1160131 - editBookmarkOverlay.js throws an error when adding a tag to a bookmark. r=ttaubert

This commit is contained in:
Marco Bonardo 2015-05-04 13:05:03 +02:00
Родитель a8dd3d18b0
Коммит c09150dc35
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -468,10 +468,14 @@ let gEditItemOverlay = {
if (!anyChanges)
return false;
// The panel could have been closed in the meanwhile.
if (!this._paneInfo)
return false;
// Ensure the tagsField is in sync, clean it up from empty tags
currentTags = this._paneInfo.bulkTagging ?
this._getCommonTags() :
PlacesUtils.tagging.getTagsForURI(this._uri);
PlacesUtils.tagging.getTagsForURI(this._paneInfo.uri);
this._initTextField(this._tagsField, currentTags.join(", "), false);
return true;
}),