Skip to content
Snippets Groups Projects
Commit bb2294be authored by PavelBegunkov's avatar PavelBegunkov
Browse files

..

parent 0dc722ad
Branches
Tags
No related merge requests found
...@@ -479,7 +479,7 @@ ...@@ -479,7 +479,7 @@
background: #EDF1F5; background: #EDF1F5;
} }
.StudentsList .StatusUnbind { .StudentsList .StatusUnbind {
background: #dffcf5; background: #F7F0D0;
} }
.StudentsList .Student .action{ .StudentsList .Student .action{
font-weight: bold; font-weight: bold;
......
...@@ -29,7 +29,9 @@ $(function() { ...@@ -29,7 +29,9 @@ $(function() {
var jGroupPrototype = $($.parseHTML("<option value='0'></option>")); var jGroupPrototype = $($.parseHTML("<option value='0'></option>"));
var jGroupContainerPrototype = $($.parseHTML( "<div class='GroupContainerAttached' id='0'>\ var jGroupContainerPrototype = $($.parseHTML( "<div class='GroupContainerAttached' id='0'>\
<div class='groupInfo'></div>\ <div class='groupInfo'>\
<div class = 'groupInfoAlone'></div>\
</div>\
</div>")); </div>"));
...@@ -69,9 +71,9 @@ $(function() { ...@@ -69,9 +71,9 @@ $(function() {
function ConstructGroupContainer(GroupID, Group, Grade) { function ConstructGroupContainer(GroupID, Group, Grade) {
var jClone = jGroupContainerPrototype.clone(); var jClone = jGroupContainerPrototype.clone();
var text = "<div class = 'groupInfoAlone'>"+Grade+"."+Group+"</div>"; var text = Grade+"."+Group;
jClone.attr("id", GroupID); jClone.attr("id", GroupID);
jClone.children().html(text); jClone.children().first().children().html(text);
return jClone; return jClone;
} }
...@@ -124,22 +126,33 @@ $(function() { ...@@ -124,22 +126,33 @@ $(function() {
); //!post ); //!post
} }
$(".SelectStudyGroup").change(function(){
SearchStudents(); $(".searchBtn").click(function(){
});
$(".InputStudentName").focusout(function(){
SearchStudents(); SearchStudents();
$(this).blur();
}); });
$(".InputStudentName").keydown(function(e){
if(e.keyCode==13){ // $(".SelectStudyGroup").change(function(){
// SearchStudents();
// });
// $(".InputStudentName").focusout(function(){
// SearchStudents();
// });
// $(".InputStudentName").keydown(function(e){
// if(e.keyCode==13){
// SearchStudents();
// $(this).blur();
// }
// });
$(".InputStudentName").keydown(function(e) {
if(e.which == 13) {
SearchStudents(); SearchStudents();
$(this).blur(); $(this).blur();
} }
}); });
function GetStudyGroups() { function GetStudyGroups() {
$.post( $.post(
g_URLdir + "handler/map/GetStudyGroups", g_URLdir + "handler/map/GetStudyGroups",
...@@ -166,7 +179,7 @@ $(function() { ...@@ -166,7 +179,7 @@ $(function() {
SearchStudents(); SearchStudents();
}); });
} }
SearchStudents(); //SearchStudents();
} //!callback } //!callback
); //!post ); //!post
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment