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" />
|
<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/plugs/uploadify-v3.1/jquery.uploadify-3.1.js"></script>
|
||||||
<script type="text/javascript" src="${ctx }/js/dw/uploadify.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/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 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>--%>
|
<%--<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="quId" value="${en.id }" >
|
||||||
<input type="hidden" class="orderById" value="${en.orderById }"/>
|
<input type="hidden" class="orderById" value="${en.orderById }"/>
|
||||||
<input type="hidden" class="isRequired" value="${en.isRequired }">
|
<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}" >
|
<input type="hidden" class="hv" value="${en.hv}" >
|
||||||
<div class="quLogicInputCase">
|
<div class="quLogicInputCase">
|
||||||
<c:forEach items="${en.questionLogics }" var="quLogicEn" varStatus="logicSts">
|
<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="quId" value="${en.id }">
|
||||||
<input type="hidden" class="orderById" value="${en.orderById }"/>
|
<input type="hidden" class="orderById" value="${en.orderById }"/>
|
||||||
<input type="hidden" class="isRequired" value="${en.isRequired }">
|
<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">
|
<div class="quLogicInputCase">
|
||||||
<c:forEach items="${en.questionLogics }" var="quLogicEn" varStatus="logicSts">
|
<c:forEach items="${en.questionLogics }" var="quLogicEn" varStatus="logicSts">
|
||||||
<div class="quLogicItem quLogicItem_${logicSts.count }">
|
<div class="quLogicItem quLogicItem_${logicSts.count }">
|
||||||
|
@ -28,7 +28,7 @@ function bindDateEvent(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.debug("dateType:"+dateType);
|
console.debug("dateType:"+dateType);
|
||||||
laydate.render({
|
laydate.render({
|
||||||
elem: surveyQuItemBody.find("input.fillblankInput")[0] //指定元素
|
elem: surveyQuItemBody.find("input.fillblankInput")[0] //指定元素
|
||||||
,type: 'datetime'
|
,type: 'datetime'
|
||||||
,format: dateFmt
|
,format: dateFmt
|
||||||
|
@ -459,46 +459,58 @@ $(document).ready(function(){
|
|||||||
var radioSelectVal = quItemBody.find(".radioSelect").val();
|
var radioSelectVal = quItemBody.find(".radioSelect").val();
|
||||||
if(radioSelectVal!=""){
|
if(radioSelectVal!=""){
|
||||||
quItemBody.find(".answerTag").val(1);
|
quItemBody.find(".answerTag").val(1);
|
||||||
|
quItemBody.find(".answerTag").attr("value",1);
|
||||||
}else{
|
}else{
|
||||||
quItemBody.find(".answerTag").val(0);
|
quItemBody.find(".answerTag").val(0);
|
||||||
|
quItemBody.find(".answerTag").attr("value",0);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//quItemBody.find(".answerTag").val(1);
|
//quItemBody.find(".answerTag").val(1);
|
||||||
var checks=quItemBody.find("input[type='radio']:checked");
|
var checks=quItemBody.find("input[type='radio']:checked");
|
||||||
if(checks[0]){
|
if(checks[0]){
|
||||||
quItemBody.find(".answerTag").val(1);
|
quItemBody.find(".answerTag").val(1);
|
||||||
|
quItemBody.find(".answerTag").attr("value",1);
|
||||||
}else{
|
}else{
|
||||||
quItemBody.find(".answerTag").val(0);
|
quItemBody.find(".answerTag").val(0);
|
||||||
|
quItemBody.find(".answerTag").attr("value",0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else if(quType=="CHECKBOX"){
|
}else if(quType=="CHECKBOX"){
|
||||||
var checks=quItemBody.find("input[type='checkbox']:checked");
|
var checks=quItemBody.find("input[type='checkbox']:checked");
|
||||||
if(checks[0]){
|
if(checks[0]){
|
||||||
quItemBody.find(".answerTag").val(1);
|
quItemBody.find(".answerTag").val(1);
|
||||||
|
quItemBody.find(".answerTag").attr("value",1);
|
||||||
}else{
|
}else{
|
||||||
quItemBody.find(".answerTag").val(0);
|
quItemBody.find(".answerTag").val(0);
|
||||||
|
quItemBody.find(".answerTag").attr("value",0);
|
||||||
}
|
}
|
||||||
}else if(quType==="FILLBLANK"){
|
}else if(quType==="FILLBLANK"){
|
||||||
var thVal=thObj.val();
|
var thVal=thObj.val();
|
||||||
if(thVal!=""){
|
if(thVal!=""){
|
||||||
quItemBody.find(".answerTag").val(1);
|
quItemBody.find(".answerTag").val(1);
|
||||||
|
quItemBody.find(".answerTag").attr("value",1);
|
||||||
}else{
|
}else{
|
||||||
quItemBody.find(".answerTag").val(0);
|
quItemBody.find(".answerTag").val(0);
|
||||||
|
quItemBody.find(".answerTag").attr("value",0);
|
||||||
}
|
}
|
||||||
}else if(quType==="ORDERQU"){
|
}else if(quType==="ORDERQU"){
|
||||||
//quOrderByLeftUl
|
//quOrderByLeftUl
|
||||||
var orderByLabels=quItemBody.find(".quOrderByLeftUl label");
|
var orderByLabels=quItemBody.find(".quOrderByLeftUl label");
|
||||||
if(!orderByLabels[0]){
|
if(!orderByLabels[0]){
|
||||||
quItemBody.find(".answerTag").val(1);
|
quItemBody.find(".answerTag").val(1);
|
||||||
|
quItemBody.find(".answerTag").attr("value",1);
|
||||||
}else{
|
}else{
|
||||||
quItemBody.find(".answerTag").val(0);
|
quItemBody.find(".answerTag").val(0);
|
||||||
|
quItemBody.find(".answerTag").attr("value",0);
|
||||||
}
|
}
|
||||||
}else if(quType==="MULTIFILLBLANK"){
|
}else if(quType==="MULTIFILLBLANK"){
|
||||||
var mFillblankTableTr=thObj.parents(".mFillblankTableTr");
|
var mFillblankTableTr=thObj.parents(".mFillblankTableTr");
|
||||||
if(thObj.val()!=""){
|
if(thObj.val()!=""){
|
||||||
mFillblankTableTr.find(".answerTag").val(1);
|
mFillblankTableTr.find(".answerTag").val(1);
|
||||||
|
mFillblankTableTr.find(".answerTag").attr("value",1);
|
||||||
}else{
|
}else{
|
||||||
mFillblankTableTr.find(".answerTag").val(0);
|
mFillblankTableTr.find(".answerTag").val(0);
|
||||||
|
mFillblankTableTr.find(".answerTag").attr("value",0);
|
||||||
}
|
}
|
||||||
}else if( quType==="SCORE" ){
|
}else if( quType==="SCORE" ){
|
||||||
//<input type="hidden" class="answerTag" value="0" >
|
//<input type="hidden" class="answerTag" value="0" >
|
||||||
@ -506,8 +518,10 @@ $(document).ready(function(){
|
|||||||
var scoreNumInput=quScoreOptionTr.find(".scoreNumInput");
|
var scoreNumInput=quScoreOptionTr.find(".scoreNumInput");
|
||||||
if(scoreNumInput.val()!=""){
|
if(scoreNumInput.val()!=""){
|
||||||
quScoreOptionTr.find(".answerTag").val(1);
|
quScoreOptionTr.find(".answerTag").val(1);
|
||||||
|
quScoreOptionTr.find(".answerTag").attr("value",1);
|
||||||
}else{
|
}else{
|
||||||
quScoreOptionTr.find(".answerTag").val(0);
|
quScoreOptionTr.find(".answerTag").val(0);
|
||||||
|
quScoreOptionTr.find(".answerTag").attr("value",0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user