Project

General

Profile

Bug #2241

Many error logs "/main not found" when using thickbox.js

Added by Yannick Warnier about 9 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
-
Target version:
Start date:
12/11/2010
Due date:
12/11/2010
% Done:

100%

Estimated time:
1.00 h
Complexity:
Normal
SCRUM pts - complexity:
3

Description

This can be avoided with the following code in main/inc/lib/javascript/thickbox.js:

// Identify the url of the current script to load the loadingAnimation.gif animation
var src=document.getElementsByTagName('script');
var src=src[src.length-1].getAttribute('src');
// remove the inc/lib/javascript/thickbox.js part (30 characters)
var src=src.substr(0,src.length-30);
var tb_pathToImage = src+"img/loadingAnimation.gif";

See http://code.google.com/p/chamilo/source/detail?r=3509b0a1be8e67264549b0e13e5a65b86d5deccd&repo=classic

Also available in: Atom PDF