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

fix

parent b87ffaa2
Branches
Tags
No related merge requests found
......@@ -5,7 +5,8 @@ $(function() {
//Получить список групп по ID курса
$("#SelectGrade").change(function() {
var gradeID = parseInt($(this).val()) || 0;
var gradeID = parseInt($(this).val()) || 0;
var jSelectGroup = $("#SelectGroup");
if (gradeID > 0)
{
$.post(
......@@ -17,7 +18,6 @@ $(function() {
d = $.parseJSON(d);
if(d.success === true) {
console.log(d.data);
var jSelectGroup = $("#SelectGroup");
var i = 0;
jSelectGroup.html("<option>-Не выбрана-</option>");
for (i in d.data)
......@@ -33,7 +33,6 @@ $(function() {
}
else
{
var jSelectGroup = $("#SelectGroup");
jSelectGroup.attr("disabled", "disabled");
jSelectGroup.html("<option>-Не выбрана-</option>");
......
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