indicator.gif not loaded properly on non root installed platform or on http platform

skala
Arnaud Ligot 14 years ago
parent da97d054ca
commit 25dfc0168f
  1. 4
      main/admin/languages.php
  2. 4
      main/course_home/activity.php
  3. 4
      main/course_home/vertical_activity.php
  4. 6
      main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_automatic.js
  5. 6
      main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_manual.js
  6. 4
      main/inc/lib/javascript/glossary.js
  7. 8
      main/newscorm/scorm_api.php

@ -80,7 +80,7 @@ $htmlHeadXtra[] ='<script type="text/javascript">
$.ajax({ $.ajax({
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
beforeSend: function(objeto) { beforeSend: function(objeto) {
$("#id_content_message").html("<div class=\"normal-message\"><img src=\'/main/inc/lib/javascript/indicator.gif\' /></div>"); $("#id_content_message").html("<div class=\"normal-message\"><img src='.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif\' /></div>");
}, },
type: "POST", type: "POST",
@ -302,4 +302,4 @@ $table->display();
============================================================================== ==============================================================================
*/ */
Display :: display_footer(); Display :: display_footer();
?> ?>

@ -91,7 +91,7 @@ if (api_is_allowed_to_edit(null, true) && !api_is_coach()) {
<div class="courseadminview" style="border:0px; margin-top: 0px;padding:0px;"> <div class="courseadminview" style="border:0px; margin-top: 0px;padding:0px;">
<div class="normal-message" id="id_normal_message" style="display:none"> <div class="normal-message" id="id_normal_message" style="display:none">
<?php <?php
echo '<img src="'.$server_protocol.$current_host.'/'.$path_work.'main/inc/lib/javascript/indicator.gif"/>&nbsp;&nbsp;'; echo '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/>&nbsp;&nbsp;';
echo get_lang('PleaseStandBy'); echo get_lang('PleaseStandBy');
?> ?>
</div> </div>
@ -172,4 +172,4 @@ if (api_is_allowed_to_edit(null, true) && !api_is_coach()) {
CourseHome::show_tools_category($my_list); CourseHome::show_tools_category($my_list);
echo '</div>'; echo '</div>';
} }
} }

@ -91,7 +91,7 @@ if (api_is_allowed_to_edit(null, true) && !api_is_coach()) {
<div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px 0px;"> <div class="courseadminview" style="border:0px; margin-top: 0px;padding:5px 0px;">
<div class="normal-message" id="id_normal_message" style="display:none"> <div class="normal-message" id="id_normal_message" style="display:none">
<?php <?php
echo '<img src="'.$server_protocol.$current_host.'/'.$path_work.'main/inc/lib/javascript/indicator.gif"/>&nbsp;&nbsp;'; echo '<img src="'.api_get_path(WEB_PATH).'main/inc/lib/javascript/indicator.gif"/>&nbsp;&nbsp;';
echo get_lang('PleaseStandBy'); echo get_lang('PleaseStandBy');
?> ?>
</div> </div>
@ -194,4 +194,4 @@ if (api_is_allowed_to_edit(null, true) && !api_is_coach()) {
} }
} }
?> ?>
</div> </div>

@ -78,9 +78,9 @@ newscorm/scorm_api.php
$.ajax({ $.ajax({
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
beforeSend: function(content_object) { beforeSend: function(content_object) {
$("div#"+div_content_id).html("<img src="+my_protocol+"//"+location.host+work_path+"/main/inc/lib/javascript/indicator.gif />"); }, $("div#"+div_content_id).html("<img src='../../../../../../../main/inc/lib/javascript/indicator.gif' />"); },
type: "POST", type: "POST",
url: my_protocol+"//"+location.host+work_path+"/main/glossary/glossary_ajax_request.php", url: "../../../../../../../main/glossary/glossary_ajax_request.php",
data: "glossary_id="+my_glossary_id, data: "glossary_id="+my_glossary_id,
success: function(datas) { success: function(datas) {
$("div#"+div_content_id).html(datas); $("div#"+div_content_id).html(datas);
@ -101,4 +101,4 @@ newscorm/scorm_api.php
}); });
/* /*
}); });
});*/ });*/

@ -25,9 +25,9 @@ newscorm/scorm_api.php
$.ajax({ $.ajax({
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
beforeSend: function(objeto) { beforeSend: function(objeto) {
$("div#"+div_content_id).html("<img src="+my_protocol+"//"+location.host+work_path+"/main/inc/lib/javascript/indicator.gif />"); }, $("div#"+div_content_id).html("<img src='../../../../../../../main/inc/lib/javascript/indicator.gif' />"); },
type: "POST", type: "POST",
url: my_protocol+"//"+location.host+work_path+"/main/glossary/glossary_ajax_request.php", url: "../../../../../../../main/glossary/glossary_ajax_request.php",
data: "glossary_name="+is_glossary_name, data: "glossary_name="+is_glossary_name,
success: function(datos) { success: function(datos) {
$("div#"+div_content_id).html(datos); $("div#"+div_content_id).html(datos);
@ -41,4 +41,4 @@ newscorm/scorm_api.php
}); });
// }); // });
//}); //});

@ -62,9 +62,9 @@ $(document).ready(function() {
$.ajax({ $.ajax({
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
beforeSend: function(content_object) { beforeSend: function(content_object) {
$("div#"+div_content_id).html("<img src="+my_protocol+"//"+location.host+work_path+"/main/inc/lib/javascript/indicator.gif />"); }, $("div#"+div_content_id).html("<img src='../../../../main/inc/lib/javascript/indicator.gif' />"); },
type: "POST", type: "POST",
url: my_protocol+"//"+location.host+work_path+"/main/glossary/glossary_ajax_request.php", url: "../../../../main/glossary/glossary_ajax_request.php",
data: "glossary_id="+my_glossary_id, data: "glossary_id="+my_glossary_id,
success: function(datas) { success: function(datas) {
$("div#"+div_content_id).html(datas); $("div#"+div_content_id).html(datas);

@ -1819,9 +1819,9 @@ function attach_glossary_into_scorm(type) {
$.ajax({ $.ajax({
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
beforeSend: function(content_object) { beforeSend: function(content_object) {
$("iframe").contents().find("div#"+div_content_id).html("<img src="+my_protocol+"//"+location.host+work_path+"/main/inc/lib/javascript/indicator.gif />"); }, $("iframe").contents().find("div#"+div_content_id).html("<img src='<?php echo api_get_path(WEB_PATH); ?>main/inc/lib/javascript/indicator.gif' />"); },
type: "POST", type: "POST",
url: my_protocol+"//"+location.host+work_path+"/main/glossary/glossary_ajax_request.php", url: "<?php echo api_get_path(WEB_PATH); ?>/main/glossary/glossary_ajax_request.php",
data: "glossary_id="+my_glossary_id, data: "glossary_id="+my_glossary_id,
success: function(datas) { success: function(datas) {
$("iframe").contents().find("div#"+div_content_id).html(datas); $("iframe").contents().find("div#"+div_content_id).html(datas);
@ -1854,9 +1854,9 @@ function attach_glossary_into_scorm(type) {
$.ajax({ $.ajax({
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
beforeSend: function(objeto) { beforeSend: function(objeto) {
$("iframe").contents().find("div#"+div_content_id).html("<img src="+my_protocol+"//"+location.host+work_path+"/main/inc/lib/javascript/indicator.gif />"); }, $("iframe").contents().find("<img src='<?php echo api_get_path(WEB_PATH); ?>main/inc/lib/javascript/indicator.gif' />"); },
type: "POST", type: "POST",
url: my_protocol+"//"+location.host+work_path+"/main/glossary/glossary_ajax_request.php", url: "<?php echo api_get_path(WEB_PATH); ?>/main/glossary/glossary_ajax_request.php",
data: "glossary_name="+is_glossary_name, data: "glossary_name="+is_glossary_name,
success: function(datos) { success: function(datos) {
$("iframe").contents().find("div#"+div_content_id).html(datos); $("iframe").contents().find("div#"+div_content_id).html(datos);

Loading…
Cancel
Save