mirror of
https://gitee.com/wkeyuan/DWSurvey.git
synced 2024-11-30 02:58:55 +08:00
在ie8下答题进度条不更新进度问题
This commit is contained in:
parent
7897e8a54a
commit
9e93b533be
@ -13,7 +13,7 @@
|
||||
<link href="${ctx }/js/plugs/uploadify-v3.1/uploadify.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="${ctx }/js/plugs/uploadify-v3.1/jquery.uploadify-3.1.js"></script>
|
||||
<script type="text/javascript" src="${ctx }/js/dw/uploadify.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="${ctx }/js/plugs/laydate/laydate.js"></script>
|
||||
<%--<script language="javascript" type="text/javascript" src="${ctx }/js/plugs/laydate/laydate.js"></script>--%>
|
||||
<script type="text/javascript" src="${ctx }/js/common/ans-common.js"></script>
|
||||
<script type="text/javascript" src="${ctx }/js/common/common.js"></script><script type="text/javascript" src="${ctx }/js/common/ans-p.js"></script>
|
||||
<%--<script language="javascript" type="text/javascript" src="${ctx }/js/plugs/My97DatePickerBeta/My97DatePicker/WdatePicker.js"></script>--%>
|
||||
@ -120,7 +120,7 @@ label.error{
|
||||
<input type="hidden" class="quId" value="${en.id }" >
|
||||
<input type="hidden" class="orderById" value="${en.orderById }"/>
|
||||
<input type="hidden" class="isRequired" value="${en.isRequired }">
|
||||
<input type="hidden" class="answerTag" value="0" >
|
||||
<input type="hidden" class="answerTag" value="0" />
|
||||
<input type="hidden" class="hv" value="${en.hv}" >
|
||||
<div class="quLogicInputCase">
|
||||
<c:forEach items="${en.questionLogics }" var="quLogicEn" varStatus="logicSts">
|
||||
@ -232,7 +232,7 @@ label.error{
|
||||
<input type="hidden" class="quId" value="${en.id }">
|
||||
<input type="hidden" class="orderById" value="${en.orderById }"/>
|
||||
<input type="hidden" class="isRequired" value="${en.isRequired }">
|
||||
<input type="hidden" class="answerTag" value="0" >
|
||||
<input type="hidden" class="answerTag" value="0" />
|
||||
<div class="quLogicInputCase">
|
||||
<c:forEach items="${en.questionLogics }" var="quLogicEn" varStatus="logicSts">
|
||||
<div class="quLogicItem quLogicItem_${logicSts.count }">
|
||||
|
@ -459,46 +459,58 @@ $(document).ready(function(){
|
||||
var radioSelectVal = quItemBody.find(".radioSelect").val();
|
||||
if(radioSelectVal!=""){
|
||||
quItemBody.find(".answerTag").val(1);
|
||||
quItemBody.find(".answerTag").attr("value",1);
|
||||
}else{
|
||||
quItemBody.find(".answerTag").val(0);
|
||||
quItemBody.find(".answerTag").attr("value",0);
|
||||
}
|
||||
}else{
|
||||
//quItemBody.find(".answerTag").val(1);
|
||||
var checks=quItemBody.find("input[type='radio']:checked");
|
||||
if(checks[0]){
|
||||
quItemBody.find(".answerTag").val(1);
|
||||
quItemBody.find(".answerTag").attr("value",1);
|
||||
}else{
|
||||
quItemBody.find(".answerTag").val(0);
|
||||
quItemBody.find(".answerTag").attr("value",0);
|
||||
}
|
||||
}
|
||||
}else if(quType=="CHECKBOX"){
|
||||
var checks=quItemBody.find("input[type='checkbox']:checked");
|
||||
if(checks[0]){
|
||||
quItemBody.find(".answerTag").val(1);
|
||||
quItemBody.find(".answerTag").attr("value",1);
|
||||
}else{
|
||||
quItemBody.find(".answerTag").val(0);
|
||||
quItemBody.find(".answerTag").attr("value",0);
|
||||
}
|
||||
}else if(quType==="FILLBLANK"){
|
||||
var thVal=thObj.val();
|
||||
if(thVal!=""){
|
||||
quItemBody.find(".answerTag").val(1);
|
||||
quItemBody.find(".answerTag").attr("value",1);
|
||||
}else{
|
||||
quItemBody.find(".answerTag").val(0);
|
||||
quItemBody.find(".answerTag").attr("value",0);
|
||||
}
|
||||
}else if(quType==="ORDERQU"){
|
||||
//quOrderByLeftUl
|
||||
var orderByLabels=quItemBody.find(".quOrderByLeftUl label");
|
||||
if(!orderByLabels[0]){
|
||||
quItemBody.find(".answerTag").val(1);
|
||||
quItemBody.find(".answerTag").attr("value",1);
|
||||
}else{
|
||||
quItemBody.find(".answerTag").val(0);
|
||||
quItemBody.find(".answerTag").attr("value",0);
|
||||
}
|
||||
}else if(quType==="MULTIFILLBLANK"){
|
||||
var mFillblankTableTr=thObj.parents(".mFillblankTableTr");
|
||||
if(thObj.val()!=""){
|
||||
mFillblankTableTr.find(".answerTag").val(1);
|
||||
mFillblankTableTr.find(".answerTag").attr("value",1);
|
||||
}else{
|
||||
mFillblankTableTr.find(".answerTag").val(0);
|
||||
mFillblankTableTr.find(".answerTag").attr("value",0);
|
||||
}
|
||||
}else if( quType==="SCORE" ){
|
||||
//<input type="hidden" class="answerTag" value="0" >
|
||||
@ -506,8 +518,10 @@ $(document).ready(function(){
|
||||
var scoreNumInput=quScoreOptionTr.find(".scoreNumInput");
|
||||
if(scoreNumInput.val()!=""){
|
||||
quScoreOptionTr.find(".answerTag").val(1);
|
||||
quScoreOptionTr.find(".answerTag").attr("value",1);
|
||||
}else{
|
||||
quScoreOptionTr.find(".answerTag").val(0);
|
||||
quScoreOptionTr.find(".answerTag").attr("value",0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user