匿评可以打0分并给出提示
This commit is contained in:
parent
b684f5b361
commit
ac976e59df
|
|
@ -21,16 +21,9 @@
|
|||
|
||||
function submit_jours(is_teacher)
|
||||
{
|
||||
if(!is_teacher&&$("#stars_value").val() == "0"){
|
||||
if(confirm('是否确定评分为0分?'))
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
// if(("#stars_value").val() == "0"){
|
||||
// if(confirm('是否确定评分为0分?')){}else{return;}
|
||||
// }
|
||||
if(!is_teacher&&$("#new_form_user_message").val() == ""){alert("您还没有填写评语");return;}
|
||||
$('#new_form_user_message').parent().submit();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,14 @@
|
|||
for (var i = num; i >= 0; i--) {$("#star0" + i).css("background-position","-24px 0px");}
|
||||
$("#stars_value").val(num);
|
||||
}
|
||||
|
||||
function ChoseZero()
|
||||
{
|
||||
if(confirm('是否确定评分为0分?'))
|
||||
{
|
||||
ChoseStars(0);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div id="popbox">
|
||||
<div class="ping_con">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<a style="float: right;padding-left: 10px;font-weight: normal;cursor: pointer;color: red;" onclick="ChoseStars(0)">零分</a>
|
||||
<a style="float: right;padding-left: 10px;font-weight: normal;cursor: pointer;color: red;" onclick="ChoseZero();">零分</a>
|
||||
<span><a href="javascript:" id="star05" onclick="ChoseStars(5)" style="background-position:<%= start_score>=5 ? '-24px 0px;':'-2px 0'%>"></a></span>
|
||||
<span><a href="javascript:" id="star04" onclick="ChoseStars(4)" style="background-position:<%= start_score>=4 ? '-24px 0px;':'-2px 0'%>"></a></span>
|
||||
<span><a href="javascript:" id="star03" onclick="ChoseStars(3)" style="background-position:<%= start_score>=3 ? '-24px 0px;':'-2px 0'%>"></a></span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue