diff --git a/main/inc/lib/javascript/ckeditor/plugins/glossary/fck_glossary_automatic.js b/main/inc/lib/javascript/ckeditor/plugins/glossary/fck_glossary_automatic.js deleted file mode 100644 index 40a99a2e7e..0000000000 --- a/main/inc/lib/javascript/ckeditor/plugins/glossary/fck_glossary_automatic.js +++ /dev/null @@ -1,103 +0,0 @@ -/** -* Makes possible to load glossary items from the Glossary Tool -* This library will be loaded in: -* -* document/showinframes.php -* newscorm/lp_view.php -* newscorm/scorm_api.php -* -*/ - -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"; -var imageSource = my_protocol+"//"+location.host+work_path+"/main/inc/lib/javascript/indicator.gif"; -var indicatorImage =''; - -$.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; - } - // glossary terms - data_terms=datas.split("[|.|_|.|-|.|]"); - var complex_array = new Array(); - var cp_complex_array = new Array(); - for(i=0;i
 
"); - var $target = $(this); - - $("#"+div_show_id).dialog("destroy"); - $("#"+div_show_id).dialog({ - autoOpen: false, - width: 600, - height: 200, - position: { my: 'left top', at: 'right top', of: $target }, - close: function(){ - $("div#"+div_show_id).remove(); - $("div#"+div_content_id).remove(); - } - }); - - 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(indicatorImage); - }, - type: "POST", - url: ajaxRequestUrl, - data: "glossary_id="+my_glossary_id, - success: function(datas) { - $("div#"+div_content_id).html(datas); - $("#"+div_show_id).dialog("open"); - } - }); - }); - } -}); diff --git a/main/inc/lib/javascript/ckeditor/plugins/glossary/fck_glossary_manual.js b/main/inc/lib/javascript/ckeditor/plugins/glossary/fck_glossary_manual.js deleted file mode 100644 index 282861cf1d..0000000000 --- a/main/inc/lib/javascript/ckeditor/plugins/glossary/fck_glossary_manual.js +++ /dev/null @@ -1,53 +0,0 @@ -/** -Makes possible to load glossary items from the Glossary Tool -This library will be loaded in: - -document/showinframes.php -newscorm/lp_view.php -newscorm/scorm_api.php - -*/ -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"; - -var imageSource = my_protocol+"//"+location.host+work_path+"/main/inc/lib/javascript/indicator.gif"; -var indicatorImage =''; - -$("body").on("click", ".glossary", function() { - is_glossary_name = $(this).html(); - random_id = Math.round(Math.random()*100); - div_show_id = "div_show_id"; - div_content_id = "div_content_id"; - - $(this).append("
 
"); - - var $target = $(this); - - $("#"+div_show_id).dialog("destroy"); - $("#"+div_show_id).dialog({ - autoOpen: false, - width: 600, - height: 200, - position: { my: 'left top', at: 'right top', of: $target }, - close: function(){ - $("div#"+div_show_id).remove(); - $("div#"+div_content_id).remove(); - } - }); - var indicator = - $.ajax({ - contentType: "application/x-www-form-urlencoded", - beforeSend: function(result) { - $("div#"+div_content_id).html(indicatorImage); - }, - type: "POST", - url: ajaxRequestUrl, - data: "glossary_name="+is_glossary_name, - success: function(data) { - $("div#"+div_content_id).html(data); - $("#"+div_show_id).dialog("open"); - } - }); -});