mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
initial support for drag and drop of attachments
This commit is contained in:
parent
23d0925556
commit
32a855b740
|
@ -1420,12 +1420,14 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
else $this->infoMsg(getMLText("no_attached_files"));
|
else $this->infoMsg(getMLText("no_attached_files"));
|
||||||
|
|
||||||
$this->contentContainerStart();
|
|
||||||
|
|
||||||
if ($document->getAccessMode($user) >= M_READWRITE){
|
if ($document->getAccessMode($user) >= M_READWRITE){
|
||||||
|
if(0){
|
||||||
|
?>
|
||||||
|
<div id="_draganddrophandler" class="droptarget well alert" data-droptarget="attachment_<?= $document->getID(); ?>" data-target="<?= $document->getID(); ?>" data-uploadformtoken="<?= createFormKey(''); ?>"><?php printMLText('drop_files_here'); ?><a href="../out/out.AddFile.php?documentid=<?= $documentid ?>"> <?= getMLText("add") ?></a></div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
print "<a href=\"../out/out.AddFile.php?documentid=".$documentid."\" class=\"btn btn-primary\">".getMLText("add")."</a>\n";
|
print "<a href=\"../out/out.AddFile.php?documentid=".$documentid."\" class=\"btn btn-primary\">".getMLText("add")."</a>\n";
|
||||||
}
|
}
|
||||||
$this->contentContainerEnd();
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane <?php if($currenttab == 'links') echo 'active'; ?>" id="links">
|
<div class="tab-pane <?php if($currenttab == 'links') echo 'active'; ?>" id="links">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user