|
|
|
|
@ -2158,18 +2158,24 @@ echo $dirForm; |
|
|
|
|
echo $selector; |
|
|
|
|
|
|
|
|
|
$table->display(); |
|
|
|
|
$ajaxURL = api_get_path(WEB_AJAX_PATH).'document.ajax.php?a=get_document_quota&'.api_get_cidreq(); |
|
|
|
|
|
|
|
|
|
if (count($documentAndFolders) > 1) { |
|
|
|
|
echo '<script> |
|
|
|
|
$(function() { |
|
|
|
|
$.ajax({ |
|
|
|
|
url:"'.$ajaxURL.'", |
|
|
|
|
success:function(data){ |
|
|
|
|
$("#course_quota").html(data); |
|
|
|
|
} |
|
|
|
|
$ajaxURL = api_get_path(WEB_AJAX_PATH).'document.ajax.php?a=get_document_quota&'.api_get_cidreq(); |
|
|
|
|
if ($isAllowedToEdit) { |
|
|
|
|
echo '<script> |
|
|
|
|
$(function() { |
|
|
|
|
$.ajax({ |
|
|
|
|
url:"'.$ajaxURL.'", |
|
|
|
|
success:function(data){ |
|
|
|
|
$("#course_quota").html(data); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
</script>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo '<script> |
|
|
|
|
$(function() { |
|
|
|
|
$(".document_size").each(function(i, obj) { |
|
|
|
|
var path = obj.getAttribute("data-path"); |
|
|
|
|
|
|
|
|
|
@ -2182,6 +2188,7 @@ if (count($documentAndFolders) > 1) { |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
</script>'; |
|
|
|
|
|
|
|
|
|
echo '<span id="course_quota"></span>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|