зеркало из https://github.com/mozilla/gecko-dev.git
remove safe guard and allow now to copy a bookmark in the folder in which it is contained.
This commit is contained in:
Родитель
1d58c088a8
Коммит
1d623fd80b
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче