Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1519 → Rev 1520

/branches/v3/impl/src/web/user/courses/studiesPlansAdministrationEdit.jsp
659,11 → 659,47
<span class="glyphicon glyphicon-remove"> </span>
</button>
</td>
<td><nested:text styleId="siges${dummyIndexIdUnidades}" styleClass="form-control" property="siges"/></td>
<td>
<script>
$(document).ready(
function()
{
$("#siges${dummyIndexIdUnidades}").focusout(
function(){
var code = $("#siges${dummyIndexIdUnidades}").val();
$.getJSON("<%=request.getContextPath()%>/user/courses/courseApiJson.jsp",
{ service:"findCourseUnit",
siges: code,
courseSigesCode: "${course.code}"
},
function(data)
{
if(data.response == "ok")
{
$("#nome${dummyIndexIdUnidades}").val(data.courseUnitName);
$("#sigesResponse${dummyIndexIdUnidades}").html("");
}
else
{
$("#sigesResponse${dummyIndexIdUnidades}").html("Não encontrado");
}
}
);
}
);
}
);
</script>
<nested:text styleId="siges${dummyIndexIdUnidades}" styleClass="form-control" property="siges"/>
<div id="sigesResponse${dummyIndexIdUnidades}"></div>
</td>
 
<td>
<div>
<div class="col-sm-1">(PT)</div>
<div class="col-sm-11"><nested:text styleId="nome${dummyIndexIdUnidades}" style="width:300px" styleClass="form-control" property="nome"/></div>
<div class="col-sm-11">
<nested:text styleId="nome${dummyIndexIdUnidades}" style="width:300px" styleClass="form-control" property="nome"/>
</div>
 
<div class="langs collapse" >
<div class="col-sm-1">(EN)</div>