|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
$(document).off('click',searchmsg).on('click','.search-button',searchmsg);
|
|
|
|
|
$(document).off('keydown',searchmsg).on('keydown','.search-input',KDsearchmsg);
|
|
|
|
|
$(document).off('click',select_one).on('click','.select-it',select_one);
|
|
|
|
|
$(document).off('click',teacherSelect).on('click','.select-it.teacher',teacherSelect);
|
|
|
|
|
$(document).off('click',studentSelect).on('click','.select-it.teacher',studentSelect);
|
|
|
|
|
})
|
|
|
|
|
function searchmsg(e) {
|
|
|
|
|
if($('.search-input').val()=='')
|
|
|
|
@ -22,16 +23,22 @@ function KDsearchmsg(e) {
|
|
|
|
|
searchmsg(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function select_one() {
|
|
|
|
|
var id=$(this).val();
|
|
|
|
|
var button=$(this);
|
|
|
|
|
function select_one(Url2,button) {
|
|
|
|
|
var id=button.val();
|
|
|
|
|
var selectDate={"id":id};
|
|
|
|
|
var Url2='testfrom.jsp';
|
|
|
|
|
$.post(Url2,selectDate,function (data,status) {
|
|
|
|
|
if(button.html()!="已选")
|
|
|
|
|
{$.post(Url2,selectDate,function (data,status) {
|
|
|
|
|
if(status=='success')
|
|
|
|
|
{
|
|
|
|
|
button.css('background-color','rgba(88, 137, 238, 0.97)')
|
|
|
|
|
.html("已选")
|
|
|
|
|
button.addClass('on').html("已选");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
})}
|
|
|
|
|
}
|
|
|
|
|
function studentSelect() {
|
|
|
|
|
var button=$(this);
|
|
|
|
|
select_one("testfrom.jsp",button);
|
|
|
|
|
}
|
|
|
|
|
function teacherSelect() {
|
|
|
|
|
var button=$(this);
|
|
|
|
|
select_one("testfrom.jsp",button);
|
|
|
|
|
}
|