- show message when clipboard is empty

This commit is contained in:
steinm 2013-02-04 14:44:32 +00:00
parent 3d822f2cff
commit 6ff71bdc09

View File

@ -1011,6 +1011,9 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common {
echo "<div class=\"well\" ondragover=\"allowDrop(event)\" ondrop=\"onAddClipboard(event)\">\n";
$clipboard = $this->params['session']->getClipboard();
// print_r($clipboard);
if(!$clipboard['docs'] && !$clipboard['folders']) {
print "<div class=\"alert\">Drag icon of folder or document here!</div>";
} else {
print "<table class=\"table\">";
if($clipboard['folders']) {
//echo "<tr><th colspan=\"3\">Folders</th></tr>\n";
@ -1072,6 +1075,7 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common {
}
}
print "</table>";
}
echo "</div>\n";
} /* }}} */