Skip to content

Commit

Permalink
#158119: Cambio para resolver la incidencia con la valoración de P2P …
Browse files Browse the repository at this point in the history
…que no actualiza bien el popup
  • Loading branch information
jorgeted committed Apr 29, 2019
1 parent 0fd6e87 commit 12a2368
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions docroot/html/p2ptaskactivity/inc/correctActivities.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -195,32 +195,7 @@ if(activity.getEnddate() == null){

//Se copia el atributo para no modificar el servicio

<%
for(int i=0;i<numQuestion;i++){
String des = LearningActivityLocalServiceUtil.getExtraContentValue(actId, "text"+i);
if(i==0 || (des != null && des.length() > 0)){
if(Validator.isNull(des)){
des = LanguageUtil.get(themeDisplay.getLocale(), "feedback");
}
%>

var textDesc = CKEDITOR.instances[thisEditor+'_<%=i%>'].getData();

AUI().one(selector).get(thisEditor+'_<%=i%>i').set('value',textDesc);

AUI().one(selector).get(thisEditor+'_<%=i%>').set('value',textDesc);
textDesc = CKEDITOR.instances[thisEditor+'_<%=i%>'].document.getBody().getText();




A.one("#contentDescriptionCorrec_<%=i%>").html(textDesc);
<%
}else{
break;
}
}
%>


if( A.one(selector).one('select[name="<portlet:namespace />resultuser"]') != null){
textResult = A.one(selector).one('select[name="<portlet:namespace />resultuser"]').val();
Expand Down Expand Up @@ -260,6 +235,35 @@ if(activity.getEnddate() == null){
}
A.one("#submitCorrec").on('click', function(){<portlet:namespace />commitFormCorrection(formName);});


<%
for(int i=0;i<numQuestion;i++){
String des = LearningActivityLocalServiceUtil.getExtraContentValue(actId, "text"+i);
if(i==0 || (des != null && des.length() > 0)){
if(Validator.isNull(des)){
des = LanguageUtil.get(themeDisplay.getLocale(), "feedback");
}
%>

var textDesc = CKEDITOR.instances[thisEditor+'_<%=i%>'].getData();

AUI().one(selector).get(thisEditor+'_<%=i%>i').set('value',textDesc);

AUI().one(selector).get(thisEditor+'_<%=i%>').set('value',textDesc);
textDesc = CKEDITOR.instances[thisEditor+'_<%=i%>'].document.getBody().getText();




A.one("#contentDescriptionCorrec_<%=i%>").html(textDesc);
<%
}else{
break;
}
}
%>


window.<portlet:namespace />p2pconfrmCorrec.show();
},
['node','aui-dialog']
Expand Down

0 comments on commit 12a2368

Please sign in to comment.