...
|
...
|
@@ -251,15 +251,11 @@ |
|
|
}
|
|
|
});
|
|
|
$('.time-box').on('click', '.acv', function () {
|
|
|
for (var i = 0; i < $(".time-box .acv").length; i++) {
|
|
|
$(".time-box .acv")[i].setAttribute("class", "acv");
|
|
|
}
|
|
|
if($(this).attr("class") == "acv"){
|
|
|
$(this).attr("class", "acv bg-colo");
|
|
|
// if ($(this).attr('class') == 'acv bg-colo') {
|
|
|
// $(this).attr('class', 'acv');
|
|
|
// } else {
|
|
|
// $(this).attr('class', 'acv bg-colo');
|
|
|
// }
|
|
|
}else{
|
|
|
$(this).attr("class", "acv");
|
|
|
}
|
|
|
});
|
|
|
$('.save').click(function () {
|
|
|
var list = $('.bg-colo');
|
...
|
...
|
@@ -274,13 +270,14 @@ |
|
|
} else {
|
|
|
var teacher_id = $('#teacher').val();
|
|
|
var time_id = $('#time').val().split('-').join('');
|
|
|
for(var q = 0;q<put_list.length;q++){
|
|
|
$.ajax({
|
|
|
url: "{:url('seting_do')}",
|
|
|
data: {
|
|
|
teach_id: teacher_id,
|
|
|
day: time_id.replace(/(\d{4})(\d{2})(\d{2})/, "$1-$2-$3"),
|
|
|
begin: parseInt(put_list[0].innerHTML.split("-")[0]),
|
|
|
end: parseInt(put_list[0].innerHTML.split("-")[1])
|
|
|
begin: parseInt(put_list[q].innerHTML.split("-")[0]),
|
|
|
end: parseInt(put_list[q].innerHTML.split("-")[1])
|
|
|
},
|
|
|
success: function (res) {
|
|
|
console.log(res);
|
...
|
...
|
@@ -291,6 +288,8 @@ |
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
}
|
|
|
});
|
|
|
setCookie("refersh_time", 0);
|
|
|
Wind.use('ajaxForm', 'artDialog', 'iframeTools', function () {
|
...
|
...
|
|