remove safe guard and allow now to copy a bookmark in the folder in which it is contained.

This commit is contained in:
chanial%noos.fr 2003-04-24 22:07:17 +00:00
Родитель 1d58c088a8
Коммит 1d623fd80b
1 изменённых файлов: 5 добавлений и 12 удалений

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

@ -1179,20 +1179,13 @@ var BookmarksUtils = {
isSelectionValidForInsertion: function (aSelection, aTarget, aAction)
{
if (!BookmarksUtils.isValidTargetContainer(aTarget.parent, aSelection)) {
var isValid = new Array(aSelection.length);
for (var i=0; i<aSelection.length; ++i)
isValid[i] = false;
if (!BookmarksUtils.isValidTargetContainer(aTarget.parent, aSelection))
return isValid;
for (i=0; i<aSelection.length; ++i) {
if (!aSelection.isValid[i])
continue;
if (!BookmarksUtils.isChildOfContainer(aSelection.item[i], aTarget.parent) ||
aAction == "move" && aSelection.parent[i] == aTarget.parent ||
aSelection.isContainer[i])
isValid[i] = true;
}
return isValid;
return aSelection.isValid;
},
isSelectionValidForDeletion: function (aSelection)