Fixed regression from r696 -- snapshots not getting saved to the current collection
This commit is contained in:
parent
d4e2b42d46
commit
100bf182da
|
@ -666,11 +666,22 @@ var ScholarPane = new function()
|
||||||
function addAttachmentFromPage(link, id)
|
function addAttachmentFromPage(link, id)
|
||||||
{
|
{
|
||||||
if(link)
|
if(link)
|
||||||
|
{
|
||||||
|
var attachmentID =
|
||||||
Scholar.Attachments.linkFromDocument(window.content.document, id);
|
Scholar.Attachments.linkFromDocument(window.content.document, id);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
var attachmentID =
|
||||||
Scholar.Attachments.importFromDocument(window.content.document, id);
|
Scholar.Attachments.importFromDocument(window.content.document, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (attachmentID && itemsView && itemsView._itemGroup.isCollection())
|
||||||
|
{
|
||||||
|
itemsView._itemGroup.ref.addItem(attachmentID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function viewSelectedAttachment()
|
function viewSelectedAttachment()
|
||||||
{
|
{
|
||||||
if(itemsView && itemsView.selection.count == 1)
|
if(itemsView && itemsView.selection.count == 1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user