Browse Source

解决答卷时在IE8兼容问题

wkeyuan 3 years ago
parent
commit
44add87143

+ 1 - 1
static/diaowen/answer-p.html

@@ -2,7 +2,7 @@
 <html>
 <html>
 <head>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-  <title></title>
+  <title>答卷页面</title>
   <link href="js/plugs/jquery-ui-1.10.3.custom/css/mycss/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
   <link href="js/plugs/jquery-ui-1.10.3.custom/css/mycss/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
   <link rel="stylesheet" type="text/css" href="css/preview-dev.css" />
   <link rel="stylesheet" type="text/css" href="css/preview-dev.css" />
   <link rel="stylesheet" type="text/css" href="js/plugs/colpick-jQuery/css/colpick.css" />
   <link rel="stylesheet" type="text/css" href="js/plugs/colpick-jQuery/css/colpick.css" />

+ 1 - 1
static/diaowen/js/common/common.js

@@ -66,7 +66,7 @@ $(document).ready(function(){
       type: btypeInfo,
       type: btypeInfo,
       pc: pc,
       pc: pc,
       prefix: prefix,
       prefix: prefix,
-      isMobile: pc !== "pc",
+      isMobile: pc !== "pc"
     };
     };
   };
   };
   $.answerPage = function(pageName,sid,callback) {
   $.answerPage = function(pageName,sid,callback) {

+ 5 - 1
static/diaowen/js/dw/an/ans-p-data.js

@@ -83,9 +83,13 @@ function parseSurvey(data,tag){
   $("#id").val(data.id);
   $("#id").val(data.id);
   $("#surveyId").val(data.id);
   $("#surveyId").val(data.id);
   $("#dwSurveyName").html(data.surveyName);
   $("#dwSurveyName").html(data.surveyName);
-  $("title").text($("#dwSurveyName").text());
   $("#dwSurveyNoteEdit").html(data.surveyDetail.surveyNote);
   $("#dwSurveyNoteEdit").html(data.surveyDetail.surveyNote);
   $("#breakpoint1").val(data.surveyDetail.breakpoint1);
   $("#breakpoint1").val(data.surveyDetail.breakpoint1);
+  try{
+    $("title").text($("#dwSurveyName").text());
+  }catch (err){
+    document.title = $("#dwSurveyName").text();
+  }
 }
 }