Subversion Repositories bacoAlunos

Rev

Rev 1617 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1617 Rev 1626
Line 242... Line 242...
242
                                    reloadCursoStats(cursoAfetoId);
242
                                    reloadCursoStats(cursoAfetoId);
243
                                }
243
                                }
244
                            },
244
                            },
245
                            "json");
245
                            "json");
246
                }
246
                }
-
 
247
 
-
 
248
                //TODO AQUI tirar o metodo daqui e meter no pedagogicoCoursesCheck
-
 
249
                function setTipologiaAfetaVar(checkObj,cursoAfetoId,unidadeAfetaId,docente,turma,cdTipo)
-
 
250
                {
-
 
251
                    targetObject = $(checkObj).closest("td");
-
 
252
                    var val =$(checkObj).prop("checked") ? "true" : "false";
-
 
253
                    var op = "excludeTipologia";
-
 
254
                    $(targetObject).addClass("waitPost");
-
 
255
                    $.post("<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/setUnidadeAfetaVar.jsp",
-
 
256
                            {
-
 
257
                                "questionarioId" : ${Questionario.id},
-
 
258
                                "unidadeAfetaId":unidadeAfetaId,
-
 
259
                                "docente":docente,
-
 
260
                                "turma":turma,
-
 
261
                                "cdTipologia":cdTipo,
-
 
262
                                "op":op,
-
 
263
                                "val": val
-
 
264
                            },
-
 
265
                            function(data, textStatus)
-
 
266
                            {
-
 
267
                                if(data.error)
-
 
268
                                {
-
 
269
                                    alert(data.error);
-
 
270
                                }
-
 
271
                                else if(data.ok == "ok")
-
 
272
                                {
-
 
273
                                    $(targetObject).removeClass("waitPost");
-
 
274
                                    reloadCursoStats(cursoAfetoId);
-
 
275
                                }
-
 
276
                            },
-
 
277
                            "json");
-
 
278
                }
-
 
279
 
247
                function reloadCursoStats(cursoAfetoId)
280
                function reloadCursoStats(cursoAfetoId)
248
                {
281
                {
249
 
282
 
250
                    $.getJSON("<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/courseInfoJson.jsp?cursoAfetoId="+cursoAfetoId,
283
                    $.getJSON("<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/courseInfoJson.jsp?cursoAfetoId="+cursoAfetoId,
251
                            function(dataJson)
284
                            function(dataJson)