Project

General

Profile

Bug #6070

Problème avec le terme graph et acsiimathml

Added by Arnaud Girola over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/04/2013
Due date:
% Done:

0%

Estimated time:
Complexity:

Description

Bonjour,
Lorsque l'on crée un exercice si l'on inscrit un mot comportant "graph" (graphique, échographie, ..) cela créer une erreur dans le script de la page.
ceci ne ce passe que si l'éditeur de fonction acsiimathml est activé.
voilà ce qui se passe dans le code source de la page.
Il insert une balise <img ...> (voir ci dessous entre les balise script)
Du coup on ne peut plus manipuler les questions, les fonctions javascript sont bloqué.

<script>
<img src="http://chart.apis.google.com/chart?cht=tx&amp;chs=1x0&amp;chl=%5Cdisplaystyle(function()%20%7B%0A%20&amp;chf=bg,s,FFFFFF00&amp;chco=0000FF" style="vertical-align: middle; " title="(function() { ">( "#dialog:ui-dialog" ).dialog( "destroy" );
 <img src="http://chart.apis.google.com/chart?cht=tx&amp;chs=1x0&amp;chl=%5Cdisplaystyle(%20%22%23dialog-confirm%22%20).dialog(%7B%0A%20autoOpen%3A%20false%2C%0A%20show%3A%20%22blind%22%2C%0A%20resizable%3A%20false%2C%0A%20height%3A150%2C%0A%20modal%3A%20false%0A%20%7D)%3B%0A%0A%20&amp;chf=bg,s,FFFFFF00&amp;chco=0000FF" style="vertical-align: middle; " title="( &quot;#dialog-confirm&quot; ).dialog({ autoOpen: false, show: &quot;blind&quot;, resizable: false, height:150, modal: false }); ">(".opener").click(function() {
 var targetUrl = <img src="http://chart.apis.google.com/chart?cht=tx&amp;chs=1x0&amp;chl=%5Cdisplaystyle(this).attr(%22href%22)%3B%0A%20&amp;chf=bg,s,FFFFFF00&amp;chco=0000FF" style="vertical-align: middle; " title="(this).attr(&quot;href&quot;); ">( "#dialog-confirm" ).dialog({
     modal: true,
 buttons: {
 "oui": function() {
 location.href = targetUrl;
 <img src="http://chart.apis.google.com/chart?cht=tx&amp;chs=1x0&amp;chl=%5Cdisplaystyle(%20this%20).dialog(%20%22close%22%20)%3B%0A%0A%20%7D%2C%0A%20%22Non%22%3A%20function()%20%7B%0A%20&amp;chf=bg,s,FFFFFF00&amp;chco=0000FF" style="vertical-align: middle; " title="( this ).dialog( &quot;close&quot; ); }, &quot;Non&quot;: function() { ">( this ).dialog( "close" );
 }
 }
 });
 <img src="http://chart.apis.google.com/chart?cht=tx&amp;chs=1x0&amp;chl=%5Cdisplaystyle(%20%22%23dialog-confirm%22%20).dialog(%22open%22)%3B%0A%20return%20false%3B%0A%20%7D)%3B%0A%0A%20var%20stop%20%3D%20false%3B%0A%20&amp;chf=bg,s,FFFFFF00&amp;chco=0000FF" style="vertical-align: middle; " title="( &quot;#dialog-confirm&quot; ).dialog(&quot;open&quot;); return false; }); var stop = false; ">( "#question_list h3" ).click(function( event ) {
 if ( stop ) {
 event.stopImmediatePropagation();
 event.preventDefault();
 stop = false;
 }
 });

 var icons = {
 header: "ui-icon-circle-arrow-e",
 headerSelected: "ui-icon-circle-arrow-s" 
 };

 /* We can add links in the accordion header */
 <img src="http://chart.apis.google.com/chart?cht=tx&amp;chs=1x0&amp;chl=%5Cdisplaystyle(%22div%20%3E%20div%20%3E%20div%20%3E%20.edition%20%3E%20div%20%3E%20a%22).click(function()%20%7B%0A%20%2F%2FAvoid%20the%20redirecto%20when%20selecting%20the%20delete%20button%0A%20if%20(this.id.indexOf('delete')%20%3D%3D%20-1)%20%7B%0A%20newWind%20%3D%20window.open(this.href%2C%22_self%22)%3B%0A%20newWind.focus()%3B%0A%20return%20false%3B%0A%20%7D%0A%20%7D)%3B%0A%0A%20&amp;chf=bg,s,FFFFFF00&amp;chco=0000FF" style="vertical-align: middle; " title="(&quot;div &gt; div &gt; div &gt; .edition &gt; div &gt; a&quot;).click(function() { //Avoid the redirecto when selecting the delete button if (this.id.indexOf('delete') == -1) { newWind = window.open(this.href,&quot;_self&quot;); newWind.focus(); return false; } }); ">( "#question_list" ).accordion({
 icons: icons,
 autoHeight: false,
 active: false, // all items closed by default
 collapsible: true,
 header: ".header_operations",
 })

 .sortable({
 cursor: "move", // works?
 update: function(event, ui) {
 var order = <img src="http://chart.apis.google.com/chart?cht=tx&amp;chs=1x0&amp;chl=%5Cdisplaystyle(this).sortable(%22serialize%22)%20%2B%20%22%26a%3Dupdate_question_order%22%3B%0A%20&amp;chf=bg,s,FFFFFF00&amp;chco=0000FF" style="vertical-align: middle; " title="(this).sortable(&quot;serialize&quot;) + &quot;&amp;a=update_question_order&quot;; ">.post("http://elearning.nice-ecurie.com/main/inc/ajax/exercise.ajax.php?cidReq=ENTRAINEMENTARNAUD&id_session=0&gidReq=0&exercise_id=6", order, function(reponse){
 <img src="http://chart.apis.google.com/chart?cht=tx&amp;chs=1x0&amp;chl=%5Cdisplaystyle(%22%23message%22).html(reponse)%3B%0A%20%7D)%3B%0A%20%7D%2C%0A%20axis%3A%20%22y%22%2C%0A%20placeholder%3A%20%22ui-state-highlight%22%2C%20%2F%2Fdefines%20the%20yellow%20highlight%0A%20handle%3A%20%22.moved%22%2C%20%2F%2Fonly%20the%20class%20%22moved%22%0A%20stop%3A%20function()%20%7B%0A%20stop%20%3D%20true%3B%0A%20%7D%0A%20%7D)%3B%0A%7D)%3B%0A&amp;chf=bg,s,FFFFFF00&amp;chco=0000FF" style="vertical-align: middle; " title="(&quot;#message&quot;).html(reponse); }); }, axis: &quot;y&quot;, placeholder: &quot;ui-state-highlight&quot;, //defines the yellow highlight handle: &quot;.moved&quot;, //only the class &quot;moved&quot; stop: function() { stop = true; } }); }); "></script>

History

#1

Updated by Stefaan Vanbillemont over 6 years ago

  • Tracker changed from Analysis to Bug
  • Project changed from Chamilo LCMS Connect to Repository

Also available in: Atom PDF