More fixes to documents dynamic loader - refs BT#2773

skala
ywarnier 14 years ago
parent d65544abf6
commit 56137ab985
  1. 5
      documentation/changelog.html
  2. 2
      main/inc/ajax/document.ajax.php
  3. 3
      main/inc/lib/document.lib.php
  4. 2
      user_portal.php

@ -36,6 +36,7 @@ This version of Chamilo only includes a few minor new features:
<li>Students can download learning paths as PDF (changeset 3bd77279faee)</li>
<li>Added tokens to certificates generation (changeset c2201eee3558)</li>
<li>Attendances session support</li>
<li>Added quick browsing of directories' documents - requires manual activation for now: in user_portal.php, find $load_dirs and set to $load_dirs = true;. Will be setable through admin page in next version (changeset 7f84869233c2)</li>
</ul>
<h3>Debugging</h3>
<ul>
@ -151,7 +152,7 @@ This version of Chamilo only includes a few minor new features:
<li>All CSS were reduced and improved in order to use the base.css and base_chamilo.css styles</li>
<li>Chosen library (select tag improved)added #3740</li>
</ul>
</li>
</li>
</ul>
<h3>Security</h3>
<ul>
@ -160,7 +161,7 @@ This version of Chamilo only includes a few minor new features:
<li>Fixed several potential SQL injections #3601</li>
</ul>
<h3>Known issues</h3>
<ul>
<ul>
<li>Watermark portal images are now saved in the main/default_course_document/images/ folder. If you used portal-wide watermarks before, you might need to upload the watermark image again.</li>
<li>A style-specific switch had been added in 1.8.8.2, which improved the appearance of older style but went against MVC's principles and broke copies of Chamilo-based styles. This switch has been removed, which may lead to the breadcrumb in non-chamilo-based styles to appear as less attractive, but keeps the MVC model safe so anyone can modify the appearance safely from the CSS. This might require very little cosmetic changes from you (in your style's default.css file), but we believe it's for the best.</li>
</ul>

@ -45,7 +45,7 @@ switch($action) {
case 'document_preview':
$course_info = api_get_course_info_by_id($_REQUEST['course_id']);
if (!empty($course_info) && is_array($course_info)) {
echo DocumentManager::get_document_preview($course_info, false, '_blank', $_REQUEST['session_id']);
echo DocumentManager::get_document_preview($course_info, false, '_blank', $_REQUEST['sessid']);
}
break;
}

@ -2550,7 +2550,8 @@ return 'application/octet-stream';
$return .= Display::url(get_lang('NewDocument'), api_get_self().'?'.api_get_cidreq().'&action=add_item&type='.TOOL_DOCUMENT.'&lp_id='.$_SESSION['oLP']->lp_id);
$return .= '</div>';
} else {
$return .= Display::div(Display::url(Display::return_icon('delete.png', get_lang('Close'), array(), 22), '#', array('id'=>'close_div_'.$course_info['real_id'].'_'.$current_session_id,'class' =>'close_div')), array('style' => 'position:absolute;right:10px'));
$txt_sessid = (empty($session_id)?'0':(string)$session_id);
$return .= Display::div(Display::url(Display::return_icon('delete.png', get_lang('Close'), array(), 22), '#', array('id'=>'close_div_'.$course_info['real_id'].'_'.$txt_sessid,'class' =>'close_div')), array('style' => 'position:absolute;right:10px'));
}
// If you want to debug it, I advise you to do "echo" on the eval statements.

@ -220,7 +220,7 @@ if ($load_dirs) {
$.ajax({
url: "'.$url.'",
data: "course_id="+course_id,
data: "course_id="+course_id+"&sessid="+sess_id,
success: function(return_value) {
image.attr("src", "'.$folder_icon.'");
$("#document_result_" +course_id+"_"+sess_id).html(return_value);

Loading…
Cancel
Save