diff --git a/main/inc/lib/javascript/glossary.js b/main/inc/lib/javascript/glossary.js deleted file mode 100755 index a1f639f539..0000000000 --- a/main/inc/lib/javascript/glossary.js +++ /dev/null @@ -1,85 +0,0 @@ -$(document).ready(function() { - $(window).load(function () { - var my_text = $(".glossary-content").html(); - my_protocol = location.protocol; - my_pathname=location.pathname; - work_path = my_pathname.substr(0,my_pathname.indexOf('/courses/')); - var ajaxRequestUrl = my_protocol+"//"+location.host+work_path+"/main/glossary/glossary_ajax_request.php"; - - $.ajax({ - contentType: "application/x-www-form-urlencoded", - beforeSend: function(content_object) { - }, - type: "POST", - url: ajaxRequestUrl, - data: "glossary_data=true", - success: function(datas) { - if (datas.length==0) { - return false; - } - data_terms = datas.split("[|.|_|.|-|.|]"); - var complex_array = new Array(); - var cp_complex_array = new Array(); - for (i=0;i
 
"); - $("div#"+div_show_id).attr("style","z-index:99;display:inline;float:left;position:absolute;background-color:#F2F2F2;border-bottom: 1px solid #2E2E2E;border-right: 1px solid #2E2E2E;border-left: 1px solid #2E2E2E;border-top: 1px solid #2E2E2E;color:#305582;margin-left:5px;margin-right:5px;"); - $("div#"+div_content_id).attr("style","z-index:99;background-color:#F2F2F2;color:#0B3861;margin-left:8px;margin-right:8px;margin-top:5px;margin-bottom:5px;"); - notebook_id = $(this).attr("name"); - data_notebook = notebook_id.split("link"); - my_glossary_id = data_notebook[1]; - $.ajax({ - contentType: "application/x-www-form-urlencoded", - beforeSend: function(content_object) { - $("div#"+div_content_id).html(""); - }, - type: "POST", - url: ajaxRequestUrl, - data: "glossary_id="+my_glossary_id, - success: function(datas) { - $("div#"+div_content_id).html(datas); - } - }); - }); - - $("#highlight-plugin .glossary-ajax").mouseout(function(){ - var current_element = $(this); - div_show_id=current_element.find("div").attr("id"); - $("div#"+div_show_id).remove(); - }); - } - }); - }); -});