Commit f0d5a2af9a51927a3f8e928ebec5da209f79cd16
1 parent
27a15f6c
修改图标剧中
Showing
3 changed files
with
11 additions
and
11 deletions
WebRoot/WEB-INF/jsp/sunvote/homework/homework_list.jsp
... | ... | @@ -98,10 +98,9 @@ |
98 | 98 | <td >${var.QUESTION_COUNT}</td> |
99 | 99 | <td >${var.COMPLETE_COUNT == "0" ? "未完成":"已完成"}</td> |
100 | 100 | <td >${var.ALL_SCORE}</td> |
101 | - <td> | |
101 | + <td style="text-align:center"> | |
102 | 102 | <c:if test="${var.COMPLETE_COUNT == '0'}"> |
103 | - <a onclick="homeReport('${var.HOMEWORK_ID}');"><img src="static/images/view.png" /></a> | |
104 | - <a onclick="edit('${var.HOMEWORK_ID}');"><img src="static/images/eidtor.png" /></a> | |
103 | + <a onclick="edit('${var.HOMEWORK_ID}');" style="margin-left: 28px"><img src="static/images/eidtor.png" /></a> | |
105 | 104 | <a onclick="del('${var.HOMEWORK_ID}');"><img src="static/images/remove.png" /></a> |
106 | 105 | </c:if> |
107 | 106 | <c:if test="${var.COMPLETE_COUNT == '1'}"> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/homework_report.jsp
... | ... | @@ -327,28 +327,28 @@ |
327 | 327 | |
328 | 328 | }); |
329 | 329 | |
330 | - $(document).on("click",".ans_option",function(){ | |
331 | - var className = $(this).siblings(".rel").attr("class"); | |
330 | + $(document).on("click",".ans_list",function(){ | |
331 | + var className = $(this).find(".ans_option").siblings(".rel").attr("class"); | |
332 | 332 | |
333 | 333 | |
334 | 334 | $(".ans_option").attr("class","ans_option"); |
335 | 335 | if(className.indexOf("ans_error")>0){ |
336 | - if($(this).hasClass("ans_error_round")){ | |
336 | + if($(this).find(".ans_option").hasClass("ans_error_round")){ | |
337 | 337 | return; |
338 | 338 | }else{ |
339 | - $(this).addClass("ans_error_round"); | |
339 | + $(this).find(".ans_option").addClass("ans_error_round"); | |
340 | 340 | } |
341 | 341 | |
342 | 342 | }else{ |
343 | - if($(this).hasClass("ans_correct_round")){ | |
343 | + if($(this).find(".ans_option").hasClass("ans_correct_round")){ | |
344 | 344 | return; |
345 | 345 | }else{ |
346 | - $(this).addClass("ans_correct_round"); | |
346 | + $(this).find(".ans_option").addClass("ans_correct_round"); | |
347 | 347 | } |
348 | 348 | } |
349 | 349 | |
350 | 350 | //显示答题名单 |
351 | - var _index = $(this).closest(".ans_list").index(); | |
351 | + var _index = $(this).find(".ans_option").closest(".ans_list").index(); | |
352 | 352 | console.log(data[_index].length); |
353 | 353 | var student_option_list=''; |
354 | 354 | for(i=0;i<data[_index].length;i++){ | ... | ... |