|
|
|
@ -58,10 +58,10 @@ $(function(){
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$('#test-program-btn').on('click', test_program);
|
|
|
|
|
$('#test-program-btn').live('click', test_program);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#commit-program-work-btn').on('click', function(){
|
|
|
|
|
$('#commit-program-work-btn').live('click', function(){
|
|
|
|
|
if(!valid_form()){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -89,7 +89,7 @@ $(function(){
|
|
|
|
|
$(".HomeWorkCon form").submit();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('form.edit_student_work').on('keydown', '#program-src', function(){
|
|
|
|
|
$('form.edit_student_work').live('keydown', '#program-src', function(){
|
|
|
|
|
tested = false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -104,12 +104,12 @@ $(function(){
|
|
|
|
|
|
|
|
|
|
$('input.date-input').datepicker(datepickerOptions);
|
|
|
|
|
|
|
|
|
|
$('a.pic_date').on('click', function(){
|
|
|
|
|
$('a.pic_date').live('click', function(){
|
|
|
|
|
$(this).parent().prev().first().focus();
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('a.ProBtn').on('click', function(){
|
|
|
|
|
$('a.ProBtn').live('click', function(){
|
|
|
|
|
$("#BluePopupBox").dialog({
|
|
|
|
|
modal: true,
|
|
|
|
|
dialogClass: 'BluePopupBox',
|
|
|
|
@ -117,12 +117,12 @@ $(function(){
|
|
|
|
|
});
|
|
|
|
|
$(".ui-dialog-titlebar").hide();
|
|
|
|
|
|
|
|
|
|
$("a.CloseBtn").on('click', function(){
|
|
|
|
|
$("a.CloseBtn").live('click', function(){
|
|
|
|
|
$("#BluePopupBox" ).dialog("close");
|
|
|
|
|
});
|
|
|
|
|
$('#textarea_input_test').focus();
|
|
|
|
|
|
|
|
|
|
$("#BluePopupBox a.BlueCirBtn").on('click', function(){
|
|
|
|
|
$("#BluePopupBox a.BlueCirBtn").live('click', function(){
|
|
|
|
|
var test_numbers = 0;
|
|
|
|
|
var valid = true;
|
|
|
|
|
var input = null;
|
|
|
|
@ -162,12 +162,12 @@ $(function(){
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#BluePopupBox").on('click', 'a.icon_add', function(){
|
|
|
|
|
$("#BluePopupBox").live('click', 'a.icon_add', function(){
|
|
|
|
|
var html = bt('t:test-answer-list', null);
|
|
|
|
|
$(this).parent('.mt10').after(html);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
$("#BluePopupBox").on('click', 'a.icon_remove', function(){
|
|
|
|
|
$("#BluePopupBox").live('click', 'a.icon_remove', function(){
|
|
|
|
|
$(this).parent('.mt10').remove();
|
|
|
|
|
});
|
|
|
|
|
});
|