Skip to content
Snippets Groups Projects
Commit 50a79928 authored by Антон Шалимов's avatar Антон Шалимов
Browse files

выделение в оценивание

parent 0a6d1f2a
Branches
Tags
No related merge requests found
......@@ -97,7 +97,7 @@
<td class="row_{{ row }} student" id="{{ student.StudentID }}">{{ student.LastName }} {{ student.FirstName }}</td>
{% for i in 1..CellCount %}
{% set RateResult = RateResult + student[i].Rate %}
<td class="row_{{ row }} col_{{ i }} rateCell"><input value="{{ student[i].Rate }}"></td>
<td class="row_{{ row }} col_{{ i }} rateCell"><input type="text" value="{{ student[i].Rate }}"></td>
{% endfor %}
<td class="row_{{ row }} col_{{ i + 1 }} RateResult">{{ RateResult }}</td>
</tr>
......
......@@ -95,7 +95,7 @@ $(function() {
tdUnFocus($(this));
});
$('.rateCell').keydown(function(e){
$('.rateCell').keyup(function(e){
thisObj = $(this);
// Получаем подмодуль
......@@ -145,6 +145,10 @@ $(function() {
}
});
$('.rateCell input').focusin(function(){
$(this).select();
});
// При нажатие на элемент rateCell дочерный input получает фокус
$('.rateCell ').click(function(){
$(this).children('input').focus();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment