点击评测时“下一关”有加载样式

This commit is contained in:
cxt 2017-08-18 15:54:52 +08:00
parent 0d6746b5c2
commit d71c7a72c8
1 changed files with 5 additions and 3 deletions

View File

@ -78,9 +78,11 @@
/* -----------------下一关增加loading效果--------------------- */
$("#next_step").live("click", function(){
nNext = $("#code_estimate");
html = "<a href='javascript:void(0);' class='task-btn mr15 mt8'>下一关<img src='/images/bigdata/loading2.svg' style='width:25px;float:left;margin-top: 3px' /></a>";
nNext.html(html);
if($("#next_step").attr("href") != "javascript:void(0);"){
nNext = $("#code_estimate");
html = "<a href='javascript:void(0);' class='task-btn mr15 mt8'>下一关<img src='/images/bigdata/loading2.svg' style='width:25px;float:left;margin-top: 3px' /></a>";
nNext.html(html);
}
});