{% if add_ready %} $(document).ready(function() { $(window).on("load", function () { {% endif %} var my_text = $(".glossary-content").html(); var ajaxRequestUrl = "{{ _p.web }}main/glossary/glossary_ajax_request.php?{{ _p.web_cid_query }}"; var imageSource = "{{ _p.web }}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"); } }); }); } }); {% if add_ready %} }); }); {% endif %}