mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
make drag&drop work
This commit is contained in:
parent
08ecb9829e
commit
ee732551c6
|
@ -159,7 +159,7 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
foreach($tasks['review'] as $t) {
|
||||
$doc = $dms->getDocument($t['id']);
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=revapp\">".$doc->getName()."</a></li>";
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=revapp\" class=\"table-row-document\" rel=\"document_".$doc->getID()."\">".$doc->getName()."</a></li>";
|
||||
}
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
|
@ -170,7 +170,7 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
foreach($tasks['approval'] as $t) {
|
||||
$doc = $dms->getDocument($t['id']);
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=revapp\">".$doc->getName()."</a></li>";
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=revapp\" class=\"table-row-document\" rel=\"document_".$doc->getID()."\">".$doc->getName()."</a></li>";
|
||||
}
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
|
@ -181,7 +181,7 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
foreach($tasks['workflow'] as $t) {
|
||||
$doc = $dms->getDocument($t['id']);
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=workflow\">".$doc->getName()."</a></li>";
|
||||
$content .= " <li><a href=\"../out/out.ViewDocument.php?documentid=".$doc->getID()."¤ttab=workflow\" class=\"table-row-document\" rel=\"document_".$doc->getID()."\">".$doc->getName()."</a></li>";
|
||||
}
|
||||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
|
@ -258,7 +258,8 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
if($folder = $dms->getFolder($folderid)) {
|
||||
$comment = $folder->getComment();
|
||||
if (strlen($comment) > 150) $comment = substr($comment, 0, 147) . "...";
|
||||
$content .= "<tr draggable=\"true\" rel=\"folder_".$folder->getID()."\" class=\"folder table-row-folder\" formtoken=\"".createFormKey('movefolder')."\">";
|
||||
// $content .= "<tr draggable=\"true\" rel=\"folder_".$folder->getID()."\" class=\"folder table-row-folder\" formtoken=\"".createFormKey('movefolder')."\">";
|
||||
$content .= $this->folderListRowStart($folder);
|
||||
$content .= "<td><a draggable=\"false\" href=\"out.ViewFolder.php?folderid=".$folder->getID()."&showtree=".showtree()."\"><img draggable=\"false\" src=\"".$this->imgpath."folder.png\" width=\"24\" height=\"24\" border=0></a></td>\n";
|
||||
$content .= "<td><a draggable=\"false\" href=\"out.ViewFolder.php?folderid=".$folder->getID()."&showtree=".showtree()."\">" . htmlspecialchars($folder->getName()) . "</a>";
|
||||
if($comment) {
|
||||
|
@ -268,7 +269,8 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style {
|
|||
$content .= "<td>\n";
|
||||
$content .= "<div class=\"list-action\"><a class=\"removefromclipboard\" rel=\"F".$folderid."\" msg=\"".getMLText('splash_removed_from_clipboard')."\" _href=\"../op/op.RemoveFromClipboard.php?folderid=".(isset($this->params['folder']) ? $this->params['folder']->getID() : '')."&id=".$folderid."&type=folder\" title=\"".getMLText('rm_from_clipboard')."\"><i class=\"icon-remove\"></i></a></div>";
|
||||
$content .= "</td>\n";
|
||||
$content .= "</tr>\n";
|
||||
//$content .= "</tr>\n";
|
||||
$content .= $this->folderListRowEnd($folder);
|
||||
$foldercount++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user