Преглед изворни кода

修复提示消息消失问题

ting.yin пре 3 година
родитељ
комит
05511d450c

+ 2 - 2
stmms-web/src/main/webapp/WEB-INF/tags/message.tag

@@ -2,9 +2,9 @@
 <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
 <%@ attribute name="content" type="java.lang.String" required="true" description="消息内容"%>
 <%@ attribute name="type" type="java.lang.String" description="消息类型:info、success、warning、error、loading"%>
-<script type="text/javascript">top.$.jBox.closeTip();</script>
+<script type="text/javascript">$.jBox.closeTip();</script>
 <c:if test="${not empty content}">
 	<c:if test="${not empty type}"><c:set var="ctype" value="${type}"/></c:if><c:if test="${empty type}"><c:set var="ctype" value="${fn:indexOf(content,'失败') eq -1?'success':'error'}"/></c:if>
 	<div id="messageBox" class="alert alert-${ctype} hide"><button data-dismiss="alert" class="close">×</button>${content}</div> 
-	<script type="text/javascript">if(!top.$.jBox.tip.mess){top.$.jBox.tip.mess=1;top.$.jBox.tip("${content}","${ctype}",{persistent:true,opacity:0});$("#messageBox").show();}</script>
+	<script type="text/javascript">if(!$.jBox.tip.mess){$.jBox.tip.mess=1;$.jBox.tip("${content}","${ctype}",{persistent:true,opacity:0});$("#messageBox").show();}</script>
 </c:if>

+ 3 - 3
stmms-web/src/main/webapp/WEB-INF/views/modules/exam/problemHistory.jsp

@@ -87,7 +87,7 @@
                 <%--  <a class="json-link" href="${ctx}/admin/exam/library/getJson?studentId=${result.id}&groupNumber=${result.number}" target="_blank">原图</a>--%>
                	<a href="${ctx}/web/admin/exam/track/library?libraryId=${result.libraryId}&subjectCode=${result.subjectCode}" target="_blank">试卷详情</a>
                 &nbsp;
-                <a href="##" data-id="${result.libraryId}" class="back-link">打回</a>
+                <a href="##" data-id="${result.libraryId}" class="back-link">重置</a>
             </td>
         </tr>
     </c:forEach>
@@ -104,12 +104,12 @@
             maxHeight: $(window).height()*0.88
         }); */
         $('.back-link').click(function () {
-            if (!confirm('确定要打回该评卷任务吗?')) {
+            if (!confirm('确定要重置该评卷任务吗?')) {
                 return;
             }
             $.post('${ctx}/admin/exam/library/reject', {id: $(this).attr('data-id'),isRest:true}, function (result) {
                 if (result.success == true) {
-                    alert('打回成功');
+                    alert('重置成功');
                     $("#searchForm").submit();
                 } else {
                     alert(result.message);