diff --git a/main/document/showinframes.php b/main/document/showinframes.php index d5dcb4f00d..7a53a4fd53 100644 --- a/main/document/showinframes.php +++ b/main/document/showinframes.php @@ -164,9 +164,11 @@ if (api_get_setting('show_glossary_in_documents') == 'ismanual') { }, "top.mainFrame", { load: [ - {type:"script", id:"_fr1", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.min.js"}, - {type:"script", id:"_fr2", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.highlight.js"}, - {type:"script", id:"_fr3", src:"'.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/plugins/glossary/fck_glossary_automatic.js"} + {type:"script", id:"_fr1", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.min.js"}, + {type:"script", id:"_fr4", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.min.js"}, + {type:"stylesheet", id:"_fr5", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.css"}, + {type:"script", id:"_fr2", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.highlight.js"}, + {type:"script", id:"_fr3", src:"'.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/plugins/glossary/fck_glossary_automatic.js"} ] } ); @@ -231,9 +233,6 @@ if ($show_web_odf) { $execute_iframe = false; } - - - $is_freemind_available = $pathinfo['extension']=='mm' && api_get_setting('enable_freemind') == 'true'; if ($is_freemind_available){ $execute_iframe = false; @@ -270,10 +269,8 @@ if (!$jplayer_supported && $execute_iframe) { '; } - Display::display_header(''); - echo '
"); },
- type: "POST",
- url: "../../../../../../../main/glossary/glossary_ajax_request.php",
- data: "glossary_id="+my_glossary_id,
- success: function(datas) {
- $("div#"+div_content_id).html(datas);
- }
- });
- });
-
- //mouse out event
- $("body .glossary-ajax").mouseout(function(){
- var current_element,
- current_element=$(this);
- div_show_id=current_element.find("div").attr("id");
- $("div#"+div_show_id).remove();
- });
-
- }
+ }
+ //alert(n + ' ' + my_index);
+ $('body').removeHighlight().highlight(n,my_index)
+ }
+ }
+ var complex_array = new Array();
+
+ //mouse over event
+ //$("body .glossary-ajax").mouseover(function(){
+ //
+ //mouse on click
+ $("body").on("click", ".glossary-ajax", function(e) {
+ random_id = Math.round(Math.random()*100);
+
+ //div_show_id = "div_show_id"+random_id;
+ //div_content_id = "div_content_id"+random_id;
+ div_show_id = "div_show_id";
+ div_content_id = "div_content_id";
+
+ $(this).append("
");
+ },
+ type: "POST",
+ url: "../../../../../../../main/glossary/glossary_ajax_request.php",
+ data: "glossary_id="+my_glossary_id,
+ success: function(datas) {
+ $("div#"+div_content_id).html(datas);
+ }
+ });
+ $("#"+div_show_id).dialog("open");
});
+
+ //mouse out event
+ /*$("body .glossary-ajax").mouseout(function(){
+ var current_element = $(this);
+ div_show_id=current_element.find("div").attr("id");
+ $("div#"+div_show_id).remove();
+ });*/
+
+ //mouse click
+
+ /*$("body").on("click", ".glossary-ajax", function(){
+ var current_element = $(this);
+ div_show_id=current_element.find("div").attr("id");
+ $("div#"+div_show_id).remove();
+ });*/
+
+ }
+
+ });
/*
});
});*/